Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #161 from Automattic/add/guardians-plugins
Browse files Browse the repository at this point in the history
Add ability to launch a site with WP Job Manager, WP Super Cache, and /or Crowdsignal.
  • Loading branch information
oskosk authored Jan 28, 2019
2 parents 19f8eb4 + 3b249fe commit 4a9eb9f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions features/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@
'classic-editor' => 'Classic Editor',
'code-snippets' => 'Code Snippets',
'config-constants' => 'Config Constants',
'crowdsignal' => 'Crowdsignal',
'gutenberg' => 'Gutenberg',
'jetpack' => 'Jetpack',
'woocommerce' => 'WooCommerce',
'wordpress-beta-tester' => 'WordPress Beta Tester Plugin',
'wp-downgrade' => 'WP Downgrade',
'wp-job-manager' => 'WP Job Manager',
'wp-log-viewer' => 'WP Log Viewer',
'wp-rollback' => 'WP Rollback',
'wp-super-cache' => 'WP Super Cache',
];
// Set all defaults to false.
// Will probably add a filter here.
Expand All @@ -31,6 +34,14 @@
add_action( 'jurassic_ninja_add_features_before_auto_login', function( &$app = null, $features, $domain ) use ( $defaults, $whitelist ) {
$features = array_merge( $defaults, $features );
foreach ( $whitelist as $slug => $name ) {
// Hack for Crowdsignal cause it's still referred to as polldaddy on the org repo
if ( 'crowdsignal' === $slug ) {
if ( isset( $features['crowdsignal'] ) && $features['crowdsignal'] ) {
debug( '%s: Adding %s', $domain, $name );
add_directory_plugin( 'polldaddy' );
}
continue;
}
if ( isset( $features[ $slug ] ) && $features[ $slug ] ) {
debug( '%s: Adding %s', $domain, $name );
add_directory_plugin( $slug );
Expand Down
2 changes: 1 addition & 1 deletion jurassic.ninja.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Plugin Name: Jurassic Ninja
* Description: Launch ephemeral instances of WordPress + Jetpack using ServerPilot and an Ubuntu Box.
* Version: 4.11
* Version: 4.12
* Author: Automattic
**/

Expand Down

0 comments on commit 4a9eb9f

Please sign in to comment.