From d319627bbf6a3e7d69d588594edfb6337593547b Mon Sep 17 00:00:00 2001 From: leogermani Date: Thu, 3 Dec 2020 19:02:14 -0300 Subject: [PATCH 1/2] add JETPACK_NO_USER_TEST_MODE constant option --- companion.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/companion.php b/companion.php index 426e7f1..cb30a1d 100644 --- a/companion.php +++ b/companion.php @@ -288,6 +288,13 @@ function companion_add_jetpack_constants_option_page() { esc_html__( 'Check to enable offline mode, and access features that can be used without a connection to WordPress.com', 'companion' ), 'type' => 'checkbox', ), + 'jetpack_no_user_testing' => array( + 'id' => 'jetpack_no_user_testing', + 'title' => __( 'JETPACK_NO_USER_TEST_MODE', 'companion' ), + 'text' => + esc_html__( 'Check to enable No User Testing Mode. This will allow you to test the Jetpack connection without an authorized user.', 'companion' ), + 'type' => 'checkbox', + ), ), ), ), @@ -323,4 +330,7 @@ function companion_tamper_with_jetpack_constants() { if ( ! ( defined( 'JETPACK_DEV_DEBUG' ) && JETPACK_DEV_DEBUG ) && companion_get_option( 'jetpack_dev_debug', '' ) ) { define( 'JETPACK_DEV_DEBUG', companion_get_option( 'jetpack_dev_debug', '' ) ? true : false ); } + if ( ! ( defined( 'JETPACK_NO_USER_TEST_MODE' ) && JETPACK_NO_USER_TEST_MODE ) && companion_get_option( 'jetpack_no_user_testing', '' ) ) { + define( 'JETPACK_NO_USER_TEST_MODE', companion_get_option( 'jetpack_no_user_testing', '' ) ? true : false ); + } } From bfe8d78af1234b75cf722b94702ac2eb51481e47 Mon Sep 17 00:00:00 2001 From: leogermani Date: Fri, 4 Dec 2020 09:56:15 -0300 Subject: [PATCH 2/2] bump version number --- companion.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/companion.php b/companion.php index cb30a1d..74ec990 100644 --- a/companion.php +++ b/companion.php @@ -3,7 +3,7 @@ Plugin Name: Companion Plugin Plugin URI: https://github.com/Automattic/companion Description: Helps keep the launched WordPress in order. -Version: 1.17 +Version: 1.18 Author: Osk */