From 5f9467e5eaeca7432c3957f70b9b8a6a6f2e1843 Mon Sep 17 00:00:00 2001 From: Osk Date: Mon, 10 Dec 2018 15:06:11 -0300 Subject: [PATCH] Check if branch arg is set for gutenpack feature before evaluating it (#153) * Check if branch arg is set for gutenpack feature * Bump version to 4.7.1 --- features/gutenpack.php | 2 +- jurassic.ninja.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/gutenpack.php b/features/gutenpack.php index a9ea131..932e0e9 100644 --- a/features/gutenpack.php +++ b/features/gutenpack.php @@ -33,7 +33,7 @@ // or a new branch derived from latest `master`. // https://github.com/Automattic/jetpack/pull/10154 $features['jetpack-beta'] = true; - $features['branch'] = $json_params['branch'] ? $json_params['branch'] : 'master'; + $features['branch'] = ( isset( $json_params['branch'] ) && $json_params['branch'] ) ? $json_params['branch'] : 'master'; // Also, force regular jetpack out of the equation $features['jetpack'] = false; } diff --git a/jurassic.ninja.php b/jurassic.ninja.php index 76d1b89..ada3642 100644 --- a/jurassic.ninja.php +++ b/jurassic.ninja.php @@ -3,7 +3,7 @@ /* * Plugin Name: Jurassic Ninja * Description: Launch ephemeral instances of WordPress + Jetpack using ServerPilot and an Ubuntu Box. - * Version: 4.7 + * Version: 4.7.1 * Author: Automattic **/