From cc2575bac67b08e5f1fa4b567c61da961338ffd2 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Fri, 16 Feb 2024 14:42:29 -0500 Subject: [PATCH 01/19] add context module and required updates due to wp-forge/helper update --- composer.json | 5 +-- composer.lock | 97 ++++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 79 insertions(+), 23 deletions(-) diff --git a/composer.json b/composer.json index 7f0672174..152382549 100644 --- a/composer.json +++ b/composer.json @@ -68,6 +68,7 @@ "require": { "newfold-labs/wp-module-business-reviews": "^1.1.1", "newfold-labs/wp-module-coming-soon": "^1.2.0", + "newfold-labs/wp-module-context": "dev-main@dev", "newfold-labs/wp-module-ctb": "^1.1.3", "newfold-labs/wp-module-customer-bluehost": "^1.6.0", "newfold-labs/wp-module-data": "^2.4.18", @@ -77,7 +78,7 @@ "newfold-labs/wp-module-help-center": "^1.0.23", "newfold-labs/wp-module-loader": "^1.0.10", "newfold-labs/wp-module-marketplace": "^2.2.1", - "newfold-labs/wp-module-notifications": "^1.2.4", + "newfold-labs/wp-module-notifications": "^1.2.5", "newfold-labs/wp-module-onboarding": "^1.12.1", "newfold-labs/wp-module-patterns": "^0.1.13", "newfold-labs/wp-module-performance": "^1.3.0", @@ -85,7 +86,7 @@ "newfold-labs/wp-module-secure-passwords": "^1.1.1", "newfold-labs/wp-module-sso": "^1.0.4", "newfold-labs/wp-module-staging": "^1.2.3", - "wp-forge/wp-update-handler": "^1.0", + "wp-forge/wp-update-handler": "^1.0.2", "wp-forge/wp-upgrade-handler": "^1.0" } } diff --git a/composer.lock b/composer.lock index 6126c8521..76b6302ed 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "53714f961812a49eaf9ee90e688d82f7", + "content-hash": "052fe3e2e9ae4f737f82cd86acff4688", "packages": [ { "name": "doctrine/inflector", @@ -324,6 +324,60 @@ }, "time": "2024-01-31T17:46:37+00:00" }, + { + "name": "newfold-labs/wp-module-context", + "version": "dev-main", + "source": { + "type": "git", + "url": "https://github.com/newfold-labs/wp-module-context.git", + "reference": "22956a095998ec6753dd763a3d48c74ce7576b6f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/newfold-labs/wp-module-context/zipball/22956a095998ec6753dd763a3d48c74ce7576b6f", + "reference": "22956a095998ec6753dd763a3d48c74ce7576b6f", + "shasum": "" + }, + "require": { + "wp-forge/helpers": "^2.0" + }, + "require-dev": { + "newfold-labs/wp-php-standards": "^1.2" + }, + "default-branch": true, + "type": "library", + "autoload": { + "psr-4": { + "NewfoldLabs\\WP\\Module\\Context\\": "includes" + }, + "files": [ + "bootstrap.php" + ] + }, + "scripts": { + "fix": [ + "vendor/bin/phpcbf . --standard=phpcs.xml" + ], + "lint": [ + "vendor/bin/phpcs . --standard=phpcs.xml -s" + ] + }, + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "Evan Mullins", + "homepage": "https://evanmullins.com" + } + ], + "description": "Newfold module to determine context for various brands and platforms.", + "support": { + "source": "https://github.com/newfold-labs/wp-module-context/tree/main", + "issues": "https://github.com/newfold-labs/wp-module-context/issues" + }, + "time": "2024-02-16T19:05:15+00:00" + }, { "name": "newfold-labs/wp-module-ctb", "version": "1.1.3", @@ -863,22 +917,22 @@ }, { "name": "newfold-labs/wp-module-notifications", - "version": "1.2.4", + "version": "1.2.5", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-notifications.git", - "reference": "f8ac38165a441e7a6ed90b0dde1edcfe2fb11139" + "reference": "156e68323677e9ac323e7c972ea126416f21db09" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-notifications/zipball/f8ac38165a441e7a6ed90b0dde1edcfe2fb11139", - "reference": "f8ac38165a441e7a6ed90b0dde1edcfe2fb11139", + "url": "https://api.github.com/repos/newfold-labs/wp-module-notifications/zipball/156e68323677e9ac323e7c972ea126416f21db09", + "reference": "156e68323677e9ac323e7c972ea126416f21db09", "shasum": "" }, "require": { "newfold-labs/wp-module-data": "^2.0.0", "wp-forge/collection": "^1.0", - "wp-forge/helpers": "^1.1.0", + "wp-forge/helpers": "^2.0", "wpscholar/url": "^1.2" }, "type": "library", @@ -901,10 +955,10 @@ ], "description": "A module for managing Newfold in-site notifications.", "support": { - "source": "https://github.com/newfold-labs/wp-module-notifications/tree/1.2.4", + "source": "https://github.com/newfold-labs/wp-module-notifications/tree/1.2.5", "issues": "https://github.com/newfold-labs/wp-module-notifications/issues" }, - "time": "2024-02-08T18:38:31+00:00" + "time": "2024-02-16T18:47:35+00:00" }, { "name": "newfold-labs/wp-module-onboarding", @@ -1416,16 +1470,16 @@ }, { "name": "wp-forge/helpers", - "version": "1.1.1", + "version": "2.0", "source": { "type": "git", "url": "https://github.com/wp-forge/helpers.git", - "reference": "59e97eeeba51f195f8f7478efb6820295ae218e4" + "reference": "28ebc09a3390dbff427270a4ed2b93395e8b9b78" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-forge/helpers/zipball/59e97eeeba51f195f8f7478efb6820295ae218e4", - "reference": "59e97eeeba51f195f8f7478efb6820295ae218e4", + "url": "https://api.github.com/repos/wp-forge/helpers/zipball/28ebc09a3390dbff427270a4ed2b93395e8b9b78", + "reference": "28ebc09a3390dbff427270a4ed2b93395e8b9b78", "shasum": "" }, "require": { @@ -1454,9 +1508,9 @@ "description": "A collection of helpers for WordPress and PHP development.", "support": { "issues": "https://github.com/wp-forge/helpers/issues", - "source": "https://github.com/wp-forge/helpers/tree/1.1.1" + "source": "https://github.com/wp-forge/helpers/tree/2.0" }, - "time": "2021-07-15T11:41:27+00:00" + "time": "2022-01-06T13:10:47+00:00" }, { "name": "wp-forge/wp-htaccess-manager", @@ -1582,20 +1636,20 @@ }, { "name": "wp-forge/wp-update-handler", - "version": "1.0.1", + "version": "1.0.2", "source": { "type": "git", "url": "https://github.com/wp-forge/wp-update-handler.git", - "reference": "deb2beae787381158dc8c60b1cdcd241333a8784" + "reference": "4dbc5e0dd4dfbb5808f9d53b1b3afd65c3db7435" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-forge/wp-update-handler/zipball/deb2beae787381158dc8c60b1cdcd241333a8784", - "reference": "deb2beae787381158dc8c60b1cdcd241333a8784", + "url": "https://api.github.com/repos/wp-forge/wp-update-handler/zipball/4dbc5e0dd4dfbb5808f9d53b1b3afd65c3db7435", + "reference": "4dbc5e0dd4dfbb5808f9d53b1b3afd65c3db7435", "shasum": "" }, "require": { - "wp-forge/helpers": "^1.1" + "wp-forge/helpers": "^2.0" }, "require-dev": { "wpscholar/phpcs-standards-wpscholar": "^1.0" @@ -1619,9 +1673,9 @@ "description": "A WordPress package for updating custom plugins and themes based on an API response from a custom update server.", "support": { "issues": "https://github.com/wp-forge/wp-update-handler/issues", - "source": "https://github.com/wp-forge/wp-update-handler/tree/1.0.1" + "source": "https://github.com/wp-forge/wp-update-handler/tree/1.0.2" }, - "time": "2022-08-26T17:36:12+00:00" + "time": "2024-02-16T18:07:08+00:00" }, { "name": "wp-forge/wp-upgrade-handler", @@ -3659,6 +3713,7 @@ "aliases": [], "minimum-stability": "stable", "stability-flags": { + "newfold-labs/wp-module-context": 20, "roave/security-advisories": 20 }, "prefer-stable": false, From 501fa3b16f7e1f473772036781ad03d9adf31a5b Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Tue, 20 Feb 2024 14:52:13 -0500 Subject: [PATCH 02/19] add context module set up context for wp-cloud and remove performance and staging accordingly --- bootstrap.php | 28 ++++++++++++++++++++ inc/Admin.php | 40 ++++++++++++++++++++++++++++- src/app/components/app-nav/index.js | 20 ++++++++------- src/app/data/routes.js | 27 ++++++++++++------- 4 files changed, 96 insertions(+), 19 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index 51d5fee27..ed4a111d9 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -11,7 +11,10 @@ use WP_Forge\UpgradeHandler\UpgradeHandler; use NewfoldLabs\WP\ModuleLoader\Container; use NewfoldLabs\WP\ModuleLoader\Plugin; +use NewfoldLabs\WP\Context\Context; use function NewfoldLabs\WP\ModuleLoader\container as setContainer; +use function NewfoldLabs\WP\Context\setContext; +use function NewfoldLabs\WP\Context\getContext; // Composer autoloader if ( is_readable( __DIR__ . '/vendor/autoload.php' ) ) { @@ -108,6 +111,31 @@ function () { ); setContainer( $bluehost_module_container ); +require_once BLUEHOST_PLUGIN_DIR . 'vendor/newfold-labs/wp-module-context/bootstrap.php'; +require_once BLUEHOST_PLUGIN_DIR . 'vendor/newfold-labs/wp-module-context/includes/Context.php'; +require_once BLUEHOST_PLUGIN_DIR . 'vendor/newfold-labs/wp-module-context/includes/functions.php'; +define( 'IS_ATOMIC', true ); +define( 'ATOMIC_CLIENT_ID', '2' ); +add_action( + 'newfold/context/set', + function () { + + setContext( 'brand.name', 'bluehost' ); + // detect wp-cloud + $platform = 'default'; + if ( defined( 'IS_ATOMIC' ) && IS_ATOMIC && defined( 'ATOMIC_CLIENT_ID' ) && '2' === ATOMIC_CLIENT_ID ) { + $platform = 'atomic'; + } + setContext( 'platform', $platform ); + } +); +add_filter( + 'newfold_runtime', + function( $runtime ) { + return array_merge( $runtime, array( 'context' => \NewfoldLabs\WP\Context\Context::all() ) ); + } +); + // Set up the updater endpoint and map values $updateurl = 'https://hiive.cloud/workers/release-api/plugins/bluehost/bluehost-wordpress-plugin'; // Custom API GET endpoint $pluginUpdater = new PluginUpdater( BLUEHOST_PLUGIN_FILE, $updateurl ); diff --git a/inc/Admin.php b/inc/Admin.php index 312c70b34..7f33d41ba 100644 --- a/inc/Admin.php +++ b/inc/Admin.php @@ -7,6 +7,8 @@ namespace Bluehost; +use function NewfoldLabs\WP\Context\getContext; + /** * \Bluehost\Admin */ @@ -56,15 +58,51 @@ public static function add_to_runtime( $sdk ) { * @return array */ public static function subpages() { - return array( + global $bluehost_module_container; + require_once BLUEHOST_PLUGIN_DIR . 'vendor/newfold-labs/wp-module-context/includes/functions.php'; + + $home = array( 'bluehost#/home' => __( 'Home', 'wp-plugin-bluehost' ), + ); + $store = array( 'bluehost#/store' => __( 'Store', 'wp-plugin-bluehost' ), + ); + $marketplace = array( 'bluehost#/marketplace' => __( 'Marketplace', 'wp-plugin-bluehost' ), + ); + $performance = array( 'bluehost#/performance' => __( 'Performance', 'wp-plugin-bluehost' ), + ); + $settings = array( 'bluehost#/settings' => __( 'Settings', 'wp-plugin-bluehost' ), + ); + $staging = array( 'bluehost#/staging' => __( 'Staging', 'wp-plugin-bluehost' ), + ); + $help = array( 'bluehost#/help' => __( 'Help', 'wp-plugin-bluehost' ), ); + + // wp-cloud adjustments + if ( 'atomic' === getContext('platform') ) { + return array_merge( + $home, + $store, + $marketplace, + $settings, + $help + ); + } + + return array_merge( + $home, + $store, + $marketplace, + $performance, + $settings, + $staging, + $help + ); } /** diff --git a/src/app/components/app-nav/index.js b/src/app/components/app-nav/index.js index fd0af78d0..45f844b08 100644 --- a/src/app/components/app-nav/index.js +++ b/src/app/components/app-nav/index.js @@ -22,15 +22,17 @@ export const SideNavMenu = () => { return ( ); diff --git a/src/app/data/routes.js b/src/app/data/routes.js index 33d4a36c7..53ead493d 100644 --- a/src/app/data/routes.js +++ b/src/app/data/routes.js @@ -31,15 +31,17 @@ export const AppRoutes = () => { return ( { routes.map( ( page ) => ( - } - /> + true === page.condition && ( + } + /> + ) ) ) } } /> Date: Tue, 20 Feb 2024 15:47:10 -0500 Subject: [PATCH 03/19] add some comments and cleanup --- bootstrap.php | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index ed4a111d9..bae9e3362 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -28,7 +28,7 @@ } /* - * Initialize coming soon module via container + * Initialize module settings via container */ $bluehost_module_container = new Container( array( @@ -109,24 +109,35 @@ function () { 'template_styles' => esc_url( BLUEHOST_PLUGIN_URL . 'assets/styles/coming-soon.css' ), ) ); -setContainer( $bluehost_module_container ); +// require for now because autoloading is not working as expected require_once BLUEHOST_PLUGIN_DIR . 'vendor/newfold-labs/wp-module-context/bootstrap.php'; require_once BLUEHOST_PLUGIN_DIR . 'vendor/newfold-labs/wp-module-context/includes/Context.php'; require_once BLUEHOST_PLUGIN_DIR . 'vendor/newfold-labs/wp-module-context/includes/functions.php'; + +// Test adding wp-cloud constants define( 'IS_ATOMIC', true ); define( 'ATOMIC_CLIENT_ID', '2' ); + add_action( 'newfold/context/set', function () { + // set brand setContext( 'brand.name', 'bluehost' ); - // detect wp-cloud + + // set platform $platform = 'default'; if ( defined( 'IS_ATOMIC' ) && IS_ATOMIC && defined( 'ATOMIC_CLIENT_ID' ) && '2' === ATOMIC_CLIENT_ID ) { $platform = 'atomic'; } setContext( 'platform', $platform ); + + // set container + $bluehost_module_container->set( + 'context', + \NewfoldLabs\WP\Context\Context::all() + ); } ); add_filter( @@ -136,6 +147,9 @@ function( $runtime ) { } ); + +setContainer( $bluehost_module_container ); + // Set up the updater endpoint and map values $updateurl = 'https://hiive.cloud/workers/release-api/plugins/bluehost/bluehost-wordpress-plugin'; // Custom API GET endpoint $pluginUpdater = new PluginUpdater( BLUEHOST_PLUGIN_FILE, $updateurl ); From 24f2b99dcdc084cda32a332f459d1ea40349725a Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Wed, 21 Feb 2024 17:51:36 -0500 Subject: [PATCH 04/19] update to latest context module moves platform detection into context module moves adding all context to runtime into context module supports cleaned up autoloading and removes requires rearranges bootstrap for more linear representation of processing order --- bootstrap.php | 63 ++++++++++++++++----------------------------------- composer.json | 2 +- composer.lock | 19 ++++++++-------- 3 files changed, 30 insertions(+), 54 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index bae9e3362..3284602c2 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -14,7 +14,6 @@ use NewfoldLabs\WP\Context\Context; use function NewfoldLabs\WP\ModuleLoader\container as setContainer; use function NewfoldLabs\WP\Context\setContext; -use function NewfoldLabs\WP\Context\getContext; // Composer autoloader if ( is_readable( __DIR__ . '/vendor/autoload.php' ) ) { @@ -30,10 +29,19 @@ /* * Initialize module settings via container */ -$bluehost_module_container = new Container( - array( - 'cache_types' => array( 'browser', 'skip404' ), - ) +$bluehost_module_container = new Container(); + +// Test adding wp-cloud constants +define( 'IS_ATOMIC', true ); +define( 'ATOMIC_CLIENT_ID', '2' ); + +// Context setup +add_action( + 'newfold/context/set', + function () { + // set brand + setContext( 'brand.name', 'bluehost' ); + } ); // Set plugin to container @@ -54,6 +62,13 @@ function () { ) ); +// Set performance settings +$bluehost_module_container->set( + 'cache_types', + array( 'browser', 'skip404' ) +); + +// Marketplace settings $bluehost_module_container->set( 'marketplace_brand', 'bluehost' @@ -110,44 +125,6 @@ function () { ) ); -// require for now because autoloading is not working as expected -require_once BLUEHOST_PLUGIN_DIR . 'vendor/newfold-labs/wp-module-context/bootstrap.php'; -require_once BLUEHOST_PLUGIN_DIR . 'vendor/newfold-labs/wp-module-context/includes/Context.php'; -require_once BLUEHOST_PLUGIN_DIR . 'vendor/newfold-labs/wp-module-context/includes/functions.php'; - -// Test adding wp-cloud constants -define( 'IS_ATOMIC', true ); -define( 'ATOMIC_CLIENT_ID', '2' ); - -add_action( - 'newfold/context/set', - function () { - - // set brand - setContext( 'brand.name', 'bluehost' ); - - // set platform - $platform = 'default'; - if ( defined( 'IS_ATOMIC' ) && IS_ATOMIC && defined( 'ATOMIC_CLIENT_ID' ) && '2' === ATOMIC_CLIENT_ID ) { - $platform = 'atomic'; - } - setContext( 'platform', $platform ); - - // set container - $bluehost_module_container->set( - 'context', - \NewfoldLabs\WP\Context\Context::all() - ); - } -); -add_filter( - 'newfold_runtime', - function( $runtime ) { - return array_merge( $runtime, array( 'context' => \NewfoldLabs\WP\Context\Context::all() ) ); - } -); - - setContainer( $bluehost_module_container ); // Set up the updater endpoint and map values diff --git a/composer.json b/composer.json index 152382549..0a14e0d87 100644 --- a/composer.json +++ b/composer.json @@ -68,7 +68,7 @@ "require": { "newfold-labs/wp-module-business-reviews": "^1.1.1", "newfold-labs/wp-module-coming-soon": "^1.2.0", - "newfold-labs/wp-module-context": "dev-main@dev", + "newfold-labs/wp-module-context": "^0.3.0", "newfold-labs/wp-module-ctb": "^1.1.3", "newfold-labs/wp-module-customer-bluehost": "^1.6.0", "newfold-labs/wp-module-data": "^2.4.18", diff --git a/composer.lock b/composer.lock index 76b6302ed..f5709b1fe 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "052fe3e2e9ae4f737f82cd86acff4688", + "content-hash": "79378dc061f7fdd529fd391091ef9f48", "packages": [ { "name": "doctrine/inflector", @@ -326,16 +326,16 @@ }, { "name": "newfold-labs/wp-module-context", - "version": "dev-main", + "version": "0.3.0", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-context.git", - "reference": "22956a095998ec6753dd763a3d48c74ce7576b6f" + "reference": "aff2a223b4d1ff7b93df1bffa29d61f700101921" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-context/zipball/22956a095998ec6753dd763a3d48c74ce7576b6f", - "reference": "22956a095998ec6753dd763a3d48c74ce7576b6f", + "url": "https://api.github.com/repos/newfold-labs/wp-module-context/zipball/aff2a223b4d1ff7b93df1bffa29d61f700101921", + "reference": "aff2a223b4d1ff7b93df1bffa29d61f700101921", "shasum": "" }, "require": { @@ -344,13 +344,13 @@ "require-dev": { "newfold-labs/wp-php-standards": "^1.2" }, - "default-branch": true, "type": "library", "autoload": { "psr-4": { - "NewfoldLabs\\WP\\Module\\Context\\": "includes" + "NewfoldLabs\\WP\\Context\\": "includes" }, "files": [ + "includes/functions.php", "bootstrap.php" ] }, @@ -373,10 +373,10 @@ ], "description": "Newfold module to determine context for various brands and platforms.", "support": { - "source": "https://github.com/newfold-labs/wp-module-context/tree/main", + "source": "https://github.com/newfold-labs/wp-module-context/tree/0.3.0", "issues": "https://github.com/newfold-labs/wp-module-context/issues" }, - "time": "2024-02-16T19:05:15+00:00" + "time": "2024-02-21T22:38:37+00:00" }, { "name": "newfold-labs/wp-module-ctb", @@ -3713,7 +3713,6 @@ "aliases": [], "minimum-stability": "stable", "stability-flags": { - "newfold-labs/wp-module-context": 20, "roave/security-advisories": 20 }, "prefer-stable": false, From 628be30c8c2951d8e60665620b4d5ad53973f677 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Wed, 21 Feb 2024 17:59:24 -0500 Subject: [PATCH 05/19] remove supported cache types if atomic --- bootstrap.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index 3284602c2..db2798501 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -14,6 +14,7 @@ use NewfoldLabs\WP\Context\Context; use function NewfoldLabs\WP\ModuleLoader\container as setContainer; use function NewfoldLabs\WP\Context\setContext; +use function NewfoldLabs\WP\Context\getContext; // Composer autoloader if ( is_readable( __DIR__ . '/vendor/autoload.php' ) ) { @@ -63,10 +64,11 @@ function () { ); // Set performance settings -$bluehost_module_container->set( - 'cache_types', - array( 'browser', 'skip404' ) -); +$cache_types = array( 'browser', 'skip404' ); +if ( 'atomic' === getContext( 'platform' ) ) { + $cache_types = array(); +} +$bluehost_module_container->set( 'cache_types', $cache_types ); // Marketplace settings $bluehost_module_container->set( From 889bce57dddc8e39eba47a636c15a424175372c4 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Thu, 22 Feb 2024 13:42:02 -0500 Subject: [PATCH 06/19] update context module to 1.0.0 --- composer.json | 2 +- composer.lock | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index 0a14e0d87..a5fb18863 100644 --- a/composer.json +++ b/composer.json @@ -68,7 +68,7 @@ "require": { "newfold-labs/wp-module-business-reviews": "^1.1.1", "newfold-labs/wp-module-coming-soon": "^1.2.0", - "newfold-labs/wp-module-context": "^0.3.0", + "newfold-labs/wp-module-context": "^1.0.0", "newfold-labs/wp-module-ctb": "^1.1.3", "newfold-labs/wp-module-customer-bluehost": "^1.6.0", "newfold-labs/wp-module-data": "^2.4.18", diff --git a/composer.lock b/composer.lock index f5709b1fe..1bc54ba76 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "79378dc061f7fdd529fd391091ef9f48", + "content-hash": "d668a952d70293b6d3299a0130e1f18a", "packages": [ { "name": "doctrine/inflector", @@ -326,16 +326,16 @@ }, { "name": "newfold-labs/wp-module-context", - "version": "0.3.0", + "version": "1.0.0", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-context.git", - "reference": "aff2a223b4d1ff7b93df1bffa29d61f700101921" + "reference": "0d852f83f353f1631309e5ae7da9cb1e046bc984" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-context/zipball/aff2a223b4d1ff7b93df1bffa29d61f700101921", - "reference": "aff2a223b4d1ff7b93df1bffa29d61f700101921", + "url": "https://api.github.com/repos/newfold-labs/wp-module-context/zipball/0d852f83f353f1631309e5ae7da9cb1e046bc984", + "reference": "0d852f83f353f1631309e5ae7da9cb1e046bc984", "shasum": "" }, "require": { @@ -373,10 +373,10 @@ ], "description": "Newfold module to determine context for various brands and platforms.", "support": { - "source": "https://github.com/newfold-labs/wp-module-context/tree/0.3.0", + "source": "https://github.com/newfold-labs/wp-module-context/tree/1.0.0", "issues": "https://github.com/newfold-labs/wp-module-context/issues" }, - "time": "2024-02-21T22:38:37+00:00" + "time": "2024-02-22T18:22:13+00:00" }, { "name": "newfold-labs/wp-module-ctb", From b6df838e1c188858551c905a088d13daaf0fea21 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Thu, 22 Feb 2024 16:29:54 -0500 Subject: [PATCH 07/19] update marketplace brand from context provided platform --- bootstrap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index db2798501..8f8bdfc83 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -73,10 +73,10 @@ function () { // Marketplace settings $bluehost_module_container->set( 'marketplace_brand', - 'bluehost' + 'atomic' !== getContext( 'platform' ) ? 'bluehost' : 'bluehost-cloud' ); -// properly get branding links depending on market +// Properly get branding links depending on market $wordpress_hosting_page = ( get_option( 'mm_brand' ) === 'Bluehost_India' ) ? 'https://www.bluehost.in?utm_source=coming-soon-template&utm_medium=bluehost_plugin' : 'https://bluehost.com?utm_source=coming-soon-template&utm_medium=bluehost_plugin'; $my_panel = ( get_option( 'mm_brand' ) === 'Bluehost_India' ) ? 'https://my.bluehost.in/web-hosting/cplogin' : 'https://my.bluehost.com/web-hosting/cplogin'; $website_guide_link = 'https://www.bluehost.com/blog/how-to-create-a-website-guide/'; From 5e592d719106e6279cad8745878bd2aee7baabae Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Thu, 22 Feb 2024 17:41:32 -0500 Subject: [PATCH 08/19] set context adjusted after context is set --- bootstrap.php | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index 8f8bdfc83..f3f5d2262 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -63,17 +63,26 @@ function () { ) ); -// Set performance settings -$cache_types = array( 'browser', 'skip404' ); -if ( 'atomic' === getContext( 'platform' ) ) { - $cache_types = array(); -} -$bluehost_module_container->set( 'cache_types', $cache_types ); +// Assign container values based on context +add_action( + 'plugins_loaded', + function () { + global $bluehost_module_container; + + // Performance default settings + $cache_types = array( 'browser', 'skip404' ); + // Marketplace default settings + $marketplace_brand = 'bluehost'; + + // Platform overrides + if ( 'atomic' === getContext( 'platform' ) ) { + $cache_types = array(); + $marketplace_brand = 'bluehost-cloud'; + } -// Marketplace settings -$bluehost_module_container->set( - 'marketplace_brand', - 'atomic' !== getContext( 'platform' ) ? 'bluehost' : 'bluehost-cloud' + $bluehost_module_container->set( 'cache_types', $cache_types ); + $bluehost_module_container->set( 'marketplace_brand', $marketplace_brand ); + } ); // Properly get branding links depending on market From 1bd9ea32a0c4ceef30060dd2373e36982bec5388 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Thu, 22 Feb 2024 17:55:21 -0500 Subject: [PATCH 09/19] set priority to 11 so it always happens after the default 10 --- bootstrap.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap.php b/bootstrap.php index f3f5d2262..40ed9820e 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -82,7 +82,8 @@ function () { $bluehost_module_container->set( 'cache_types', $cache_types ); $bluehost_module_container->set( 'marketplace_brand', $marketplace_brand ); - } + }, + 11 ); // Properly get branding links depending on market From 2e3030494f444b2dd82df160045ca6dc5f9de24d Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Fri, 23 Feb 2024 12:01:31 -0500 Subject: [PATCH 10/19] remove atomic id constant and atomic constant --- bootstrap.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index 40ed9820e..6611d406e 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -33,8 +33,7 @@ $bluehost_module_container = new Container(); // Test adding wp-cloud constants -define( 'IS_ATOMIC', true ); -define( 'ATOMIC_CLIENT_ID', '2' ); +// define( 'IS_ATOMIC', true ); // Context setup add_action( From 5777d4a1377fbd0a2c775b693a4914447eb64c03 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Fri, 23 Feb 2024 12:29:55 -0500 Subject: [PATCH 11/19] lint fix-up --- bootstrap.php | 8 ++++---- inc/Admin.php | 22 +++++++++++----------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index 6611d406e..46b7c5bd6 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -37,10 +37,10 @@ // Context setup add_action( - 'newfold/context/set', - function () { + 'newfold/context/set', + function () { // set brand - setContext( 'brand.name', 'bluehost' ); + setContext( 'brand.name', 'bluehost' ); } ); @@ -75,7 +75,7 @@ function () { // Platform overrides if ( 'atomic' === getContext( 'platform' ) ) { - $cache_types = array(); + $cache_types = array(); $marketplace_brand = 'bluehost-cloud'; } diff --git a/inc/Admin.php b/inc/Admin.php index 7f33d41ba..6c5c3c8af 100644 --- a/inc/Admin.php +++ b/inc/Admin.php @@ -61,11 +61,11 @@ public static function subpages() { global $bluehost_module_container; require_once BLUEHOST_PLUGIN_DIR . 'vendor/newfold-labs/wp-module-context/includes/functions.php'; - $home = array( - 'bluehost#/home' => __( 'Home', 'wp-plugin-bluehost' ), + $home = array( + 'bluehost#/home' => __( 'Home', 'wp-plugin-bluehost' ), ); - $store = array( - 'bluehost#/store' => __( 'Store', 'wp-plugin-bluehost' ), + $store = array( + 'bluehost#/store' => __( 'Store', 'wp-plugin-bluehost' ), ); $marketplace = array( 'bluehost#/marketplace' => __( 'Marketplace', 'wp-plugin-bluehost' ), @@ -73,18 +73,18 @@ public static function subpages() { $performance = array( 'bluehost#/performance' => __( 'Performance', 'wp-plugin-bluehost' ), ); - $settings = array( - 'bluehost#/settings' => __( 'Settings', 'wp-plugin-bluehost' ), + $settings = array( + 'bluehost#/settings' => __( 'Settings', 'wp-plugin-bluehost' ), ); - $staging = array( - 'bluehost#/staging' => __( 'Staging', 'wp-plugin-bluehost' ), + $staging = array( + 'bluehost#/staging' => __( 'Staging', 'wp-plugin-bluehost' ), ); - $help = array( - 'bluehost#/help' => __( 'Help', 'wp-plugin-bluehost' ), + $help = array( + 'bluehost#/help' => __( 'Help', 'wp-plugin-bluehost' ), ); // wp-cloud adjustments - if ( 'atomic' === getContext('platform') ) { + if ( 'atomic' === getContext( 'platform' ) ) { return array_merge( $home, $store, From c8b74f60817570ea83857231d2567bd52ee91e6e Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Fri, 23 Feb 2024 12:33:00 -0500 Subject: [PATCH 12/19] lint fix-up --- bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.php b/bootstrap.php index 46b7c5bd6..4ccb8b902 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -65,7 +65,7 @@ function () { // Assign container values based on context add_action( 'plugins_loaded', - function () { + function () { global $bluehost_module_container; // Performance default settings From f8e0eaed3dcbff367e34a841570856015861c52a Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Fri, 23 Feb 2024 14:49:35 -0500 Subject: [PATCH 13/19] composer validate --- composer.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.lock b/composer.lock index a6c7e1991..1a071aea6 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "66d62b016642f8f80b4e075ab5896788", + "content-hash": "68ae788965ee4dbfae7311fa5c340663", "packages": [ { "name": "doctrine/inflector", From 8645758d00d635d698f89414be5308e5b547764e Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Mon, 26 Feb 2024 12:47:49 -0500 Subject: [PATCH 14/19] module updates --- composer.json | 10 +++++----- composer.lock | 28 ++++++++++++++-------------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/composer.json b/composer.json index 155a43f0d..a20b79125 100644 --- a/composer.json +++ b/composer.json @@ -73,15 +73,15 @@ "newfold-labs/wp-module-customer-bluehost": "^1.6.0", "newfold-labs/wp-module-data": "^2.4.18", "newfold-labs/wp-module-deactivation": "^1.0.5", - "newfold-labs/wp-module-ecommerce": "^1.3", + "newfold-labs/wp-module-ecommerce": "^1.3.23", "newfold-labs/wp-module-global-ctb": "^1.0.11", "newfold-labs/wp-module-help-center": "^1.0.23", "newfold-labs/wp-module-loader": "^1.0.10", - "newfold-labs/wp-module-marketplace": "^2.2.1", + "newfold-labs/wp-module-marketplace": "^2.2.3", "newfold-labs/wp-module-notifications": "^1.2.5", - "newfold-labs/wp-module-onboarding": "^2.1", - "newfold-labs/wp-module-patterns": "^0.1.13", - "newfold-labs/wp-module-performance": "^1.3.0", + "newfold-labs/wp-module-onboarding": "^2.1.2", + "newfold-labs/wp-module-patterns": "^0.1.14", + "newfold-labs/wp-module-performance": "^1.3.1", "newfold-labs/wp-module-runtime": "^1.0.9", "newfold-labs/wp-module-secure-passwords": "^1.1.1", "newfold-labs/wp-module-sso": "^1.0.4", diff --git a/composer.lock b/composer.lock index 1a071aea6..9c14f4c81 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "68ae788965ee4dbfae7311fa5c340663", + "content-hash": "c0946b72a65f7db2675edcf2c7de08f4", "packages": [ { "name": "doctrine/inflector", @@ -1012,23 +1012,23 @@ }, { "name": "newfold-labs/wp-module-onboarding", - "version": "2.1.1", + "version": "2.1.2", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-onboarding.git", - "reference": "b2cfef6dbce7ca4087a86baf844125591e0cbc9f" + "reference": "7bf113c158bcb3721436071cfe6a8c010827175d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-onboarding/zipball/b2cfef6dbce7ca4087a86baf844125591e0cbc9f", - "reference": "b2cfef6dbce7ca4087a86baf844125591e0cbc9f", + "url": "https://api.github.com/repos/newfold-labs/wp-module-onboarding/zipball/7bf113c158bcb3721436071cfe6a8c010827175d", + "reference": "7bf113c158bcb3721436071cfe6a8c010827175d", "shasum": "" }, "require": { "mustache/mustache": "^2.14", "newfold-labs/wp-module-facebook": "^1.0.6", "newfold-labs/wp-module-install-checker": "^1.0", - "newfold-labs/wp-module-onboarding-data": "^1.1.0", + "newfold-labs/wp-module-onboarding-data": "^1.1.1", "newfold-labs/wp-module-patterns": "^0.1.14", "wp-cli/wp-config-transformer": "^1.3", "wp-forge/helpers": "^2.0" @@ -1067,23 +1067,23 @@ ], "description": "Next-generation WordPress Onboarding for WordPress sites at Newfold Digital.", "support": { - "source": "https://github.com/newfold-labs/wp-module-onboarding/tree/2.1.1", + "source": "https://github.com/newfold-labs/wp-module-onboarding/tree/2.1.2", "issues": "https://github.com/newfold-labs/wp-module-onboarding/issues" }, - "time": "2024-02-22T21:30:39+00:00" + "time": "2024-02-26T10:15:27+00:00" }, { "name": "newfold-labs/wp-module-onboarding-data", - "version": "1.1.0", + "version": "1.1.1", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-onboarding-data.git", - "reference": "939e978083a0f6f656b6fb492766decf040ec44e" + "reference": "ef35d08c00da9df72ceae47b1bfb235c35db3008" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-onboarding-data/zipball/939e978083a0f6f656b6fb492766decf040ec44e", - "reference": "939e978083a0f6f656b6fb492766decf040ec44e", + "url": "https://api.github.com/repos/newfold-labs/wp-module-onboarding-data/zipball/ef35d08c00da9df72ceae47b1bfb235c35db3008", + "reference": "ef35d08c00da9df72ceae47b1bfb235c35db3008", "shasum": "" }, "require": { @@ -1113,10 +1113,10 @@ ], "description": "A non-toggleable module containing a standardized interface for interacting with Onboarding data.", "support": { - "source": "https://github.com/newfold-labs/wp-module-onboarding-data/tree/1.1.0", + "source": "https://github.com/newfold-labs/wp-module-onboarding-data/tree/1.1.1", "issues": "https://github.com/newfold-labs/wp-module-onboarding-data/issues" }, - "time": "2024-02-21T14:44:05+00:00" + "time": "2024-02-23T08:16:45+00:00" }, { "name": "newfold-labs/wp-module-patterns", From 326f2eed821a1c8db1d3fc7ca22e2a5d3413156d Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Mon, 26 Feb 2024 13:26:22 -0500 Subject: [PATCH 15/19] validate composer --- composer.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.lock b/composer.lock index 4f78a9bf9..9c14f4c81 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f1008b36165e57b80546f7edd9bcb8e1", + "content-hash": "c0946b72a65f7db2675edcf2c7de08f4", "packages": [ { "name": "doctrine/inflector", From 08c5de9fa9f7b510a70b435e98314975af98bb82 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Mon, 26 Feb 2024 15:12:07 -0500 Subject: [PATCH 16/19] remove commented test code and required file that should work with namespace now --- bootstrap.php | 3 --- inc/Admin.php | 1 - 2 files changed, 4 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index 4ccb8b902..e96a6b97e 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -32,9 +32,6 @@ */ $bluehost_module_container = new Container(); -// Test adding wp-cloud constants -// define( 'IS_ATOMIC', true ); - // Context setup add_action( 'newfold/context/set', diff --git a/inc/Admin.php b/inc/Admin.php index 6c5c3c8af..14b4fb797 100644 --- a/inc/Admin.php +++ b/inc/Admin.php @@ -59,7 +59,6 @@ public static function add_to_runtime( $sdk ) { */ public static function subpages() { global $bluehost_module_container; - require_once BLUEHOST_PLUGIN_DIR . 'vendor/newfold-labs/wp-module-context/includes/functions.php'; $home = array( 'bluehost#/home' => __( 'Home', 'wp-plugin-bluehost' ), From e8353ce3a1bf45c826f6e092263e475aac711d7c Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Mon, 26 Feb 2024 15:30:51 -0500 Subject: [PATCH 17/19] test without permalink command --- tests/cypress/support/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cypress/support/commands.js b/tests/cypress/support/commands.js index 44c73615a..cb276606d 100644 --- a/tests/cypress/support/commands.js +++ b/tests/cypress/support/commands.js @@ -42,7 +42,7 @@ Cypress.Commands.add( 'login', ( username, password ) => { cy.get( '#user_pass' ).type( `${ password }{enter}` ); // Speed up tests by setting permalink structure once - cy.setPermalinkStructure(); + // cy.setPermalinkStructure(); } } ); } ); From 3f684227d2fb6575d28df552832d277ffcd77d47 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Tue, 27 Feb 2024 14:06:59 -0500 Subject: [PATCH 18/19] make sure container exists to fix CLI command issue --- bootstrap.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index e96a6b97e..4174f421b 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -76,8 +76,10 @@ function () { $marketplace_brand = 'bluehost-cloud'; } - $bluehost_module_container->set( 'cache_types', $cache_types ); - $bluehost_module_container->set( 'marketplace_brand', $marketplace_brand ); + if ( $bluehost_module_container ) { + $bluehost_module_container->set( 'cache_types', $cache_types ); + $bluehost_module_container->set( 'marketplace_brand', $marketplace_brand ); + } }, 11 ); From b50d34f3256df347c0f100b1e4e8599eb80bbe6e Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Tue, 27 Feb 2024 15:20:19 -0500 Subject: [PATCH 19/19] update performance and staging modules for coordinated context updates - Upgrading newfold-labs/wp-module-performance (1.3.1 => 1.4.0) - Upgrading newfold-labs/wp-module-staging (1.2.3 => 1.3.0) --- composer.json | 4 ++-- composer.lock | 30 +++++++++++++++++------------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/composer.json b/composer.json index 7fd14d186..70c140c99 100644 --- a/composer.json +++ b/composer.json @@ -81,11 +81,11 @@ "newfold-labs/wp-module-notifications": "^1.2.5", "newfold-labs/wp-module-onboarding": "^2.1.3", "newfold-labs/wp-module-patterns": "^0.1.14", - "newfold-labs/wp-module-performance": "^1.3.1", + "newfold-labs/wp-module-performance": "^1.4.0", "newfold-labs/wp-module-runtime": "^1.0.9", "newfold-labs/wp-module-secure-passwords": "^1.1.1", "newfold-labs/wp-module-sso": "^1.0.4", - "newfold-labs/wp-module-staging": "^1.2.3", + "newfold-labs/wp-module-staging": "^1.3.0", "wp-forge/wp-update-handler": "^1.0.2", "wp-forge/wp-upgrade-handler": "^1.0" } diff --git a/composer.lock b/composer.lock index 0c7a6da7a..ac7a907e6 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "dfe386076913eb59fa8e7780486e0e79", + "content-hash": "585bcd3c593e343ba8cc3de5fd682602", "packages": [ { "name": "doctrine/inflector", @@ -1170,19 +1170,20 @@ }, { "name": "newfold-labs/wp-module-performance", - "version": "1.3.1", + "version": "1.4.0", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-performance.git", - "reference": "c5da2a9eb8afe5b4edb6dfa43bfac3a150dba916" + "reference": "3d11c8da5928cc29899876bf9b1ea41b76cfc8cd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-performance/zipball/c5da2a9eb8afe5b4edb6dfa43bfac3a150dba916", - "reference": "c5da2a9eb8afe5b4edb6dfa43bfac3a150dba916", + "url": "https://api.github.com/repos/newfold-labs/wp-module-performance/zipball/3d11c8da5928cc29899876bf9b1ea41b76cfc8cd", + "reference": "3d11c8da5928cc29899876bf9b1ea41b76cfc8cd", "shasum": "" }, "require": { + "newfold-labs/wp-module-context": "^1.0", "wp-forge/collection": "^1.0", "wp-forge/wp-htaccess-manager": "^1.0", "wpscholar/url": "^1.2" @@ -1208,10 +1209,10 @@ ], "description": "A module for managing caching functionality.", "support": { - "source": "https://github.com/newfold-labs/wp-module-performance/tree/1.3.1", + "source": "https://github.com/newfold-labs/wp-module-performance/tree/1.4.0", "issues": "https://github.com/newfold-labs/wp-module-performance/issues" }, - "time": "2024-02-22T21:59:34+00:00" + "time": "2024-02-27T20:09:07+00:00" }, { "name": "newfold-labs/wp-module-runtime", @@ -1358,18 +1359,21 @@ }, { "name": "newfold-labs/wp-module-staging", - "version": "1.2.3", + "version": "1.3.0", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-staging.git", - "reference": "87a8f2659ad256fa03a0ae2932950cb6d745dfa4" + "reference": "a2bf4fdeb9532f27a13bc15dc40aeea513b70471" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-staging/zipball/87a8f2659ad256fa03a0ae2932950cb6d745dfa4", - "reference": "87a8f2659ad256fa03a0ae2932950cb6d745dfa4", + "url": "https://api.github.com/repos/newfold-labs/wp-module-staging/zipball/a2bf4fdeb9532f27a13bc15dc40aeea513b70471", + "reference": "a2bf4fdeb9532f27a13bc15dc40aeea513b70471", "shasum": "" }, + "require": { + "newfold-labs/wp-module-context": "^1.0" + }, "require-dev": { "newfold-labs/wp-php-standards": "^1.2" }, @@ -1401,10 +1405,10 @@ ], "description": "Newfold module for staging functionality in brand plugins", "support": { - "source": "https://github.com/newfold-labs/wp-module-staging/tree/1.2.3", + "source": "https://github.com/newfold-labs/wp-module-staging/tree/1.3.0", "issues": "https://github.com/newfold-labs/wp-module-staging/issues" }, - "time": "2023-12-05T18:18:33+00:00" + "time": "2024-02-27T20:06:41+00:00" }, { "name": "wp-cli/wp-config-transformer",