diff --git a/composer.json b/composer.json index b03b5aa42..3d8d59323 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,6 @@ "wp-cli/wp-config-transformer": "^1.3", "newfold-labs/wp-module-onboarding-data": "^1.1", "newfold-labs/wp-module-patterns": "^0.1", - "newfold-labs/wp-module-install-checker": "^1.0", "newfold-labs/wp-module-facebook": "^1.0", "wp-forge/helpers": "^2.0" }, diff --git a/composer.lock b/composer.lock index 01a433d4a..40933dc28 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": "20b284eff5efb73cc65dc0588be55399", + "content-hash": "1af02b460b4e6e823da2c59d4e41c9e7", "packages": [ { "name": "doctrine/inflector", @@ -345,16 +345,16 @@ }, { "name": "newfold-labs/wp-module-data", - "version": "2.4.21", + "version": "2.4.23", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-data.git", - "reference": "efee98ff57154cf862ea8c2791ed514a0765fc88" + "reference": "386157fa9d6ac00dac28a79c7b6d26b40434d047" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/efee98ff57154cf862ea8c2791ed514a0765fc88", - "reference": "efee98ff57154cf862ea8c2791ed514a0765fc88", + "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/386157fa9d6ac00dac28a79c7b6d26b40434d047", + "reference": "386157fa9d6ac00dac28a79c7b6d26b40434d047", "shasum": "" }, "require": { @@ -395,10 +395,10 @@ ], "description": "Newfold Data Module", "support": { - "source": "https://github.com/newfold-labs/wp-module-data/tree/2.4.21", + "source": "https://github.com/newfold-labs/wp-module-data/tree/2.4.23", "issues": "https://github.com/newfold-labs/wp-module-data/issues" }, - "time": "2024-03-29T20:20:11+00:00" + "time": "2024-04-10T15:02:13+00:00" }, { "name": "newfold-labs/wp-module-facebook", @@ -442,45 +442,6 @@ }, "time": "2024-02-12T08:48:41+00:00" }, - { - "name": "newfold-labs/wp-module-install-checker", - "version": "1.0.3", - "source": { - "type": "git", - "url": "https://github.com/newfold-labs/wp-module-install-checker.git", - "reference": "9d43e916b8c4e752b45c868b41340b84bcb686a6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-install-checker/zipball/9d43e916b8c4e752b45c868b41340b84bcb686a6", - "reference": "9d43e916b8c4e752b45c868b41340b84bcb686a6", - "shasum": "" - }, - "type": "library", - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "NewfoldLabs\\WP\\Module\\InstallChecker\\": "includes/" - } - }, - "license": [ - "GPL-2.0-or-later" - ], - "authors": [ - { - "name": "Micah Wood", - "homepage": "https://wpscholar.com" - } - ], - "description": "A module that handles checking a WordPress installation to see if it is a fresh install and to fetch the estimated installation date.", - "support": { - "source": "https://github.com/newfold-labs/wp-module-install-checker/tree/1.0.3", - "issues": "https://github.com/newfold-labs/wp-module-install-checker/issues" - }, - "time": "2024-01-31T18:12:34+00:00" - }, { "name": "newfold-labs/wp-module-installer", "version": "1.1.4", @@ -617,16 +578,16 @@ }, { "name": "newfold-labs/wp-module-patterns", - "version": "0.1.16", + "version": "0.1.17", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-patterns.git", - "reference": "0ab410ea66231f2694d4f9d0aafa2e2874000cf2" + "reference": "92fde7daaf5d86a2567b22c9d31db4060b346933" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-patterns/zipball/0ab410ea66231f2694d4f9d0aafa2e2874000cf2", - "reference": "0ab410ea66231f2694d4f9d0aafa2e2874000cf2", + "url": "https://api.github.com/repos/newfold-labs/wp-module-patterns/zipball/92fde7daaf5d86a2567b22c9d31db4060b346933", + "reference": "92fde7daaf5d86a2567b22c9d31db4060b346933", "shasum": "" }, "require-dev": { @@ -660,10 +621,10 @@ ], "description": "WordPress Cloud Patterns", "support": { - "source": "https://github.com/newfold-labs/wp-module-patterns/tree/0.1.16", + "source": "https://github.com/newfold-labs/wp-module-patterns/tree/0.1.17", "issues": "https://github.com/newfold-labs/wp-module-patterns/issues" }, - "time": "2024-04-08T19:51:29+00:00" + "time": "2024-04-10T19:48:10+00:00" }, { "name": "newfold-labs/wp-module-performance", @@ -3877,7 +3838,7 @@ }, { "name": "wp-phpunit/wp-phpunit", - "version": "6.5.0", + "version": "6.5.2", "source": { "type": "git", "url": "https://github.com/wp-phpunit/wp-phpunit.git", diff --git a/includes/LoginRedirect.php b/includes/LoginRedirect.php index a608a26c1..a9b2f994b 100644 --- a/includes/LoginRedirect.php +++ b/includes/LoginRedirect.php @@ -4,7 +4,6 @@ use NewfoldLabs\WP\Module\Onboarding\Data\Data; use NewfoldLabs\WP\Module\Onboarding\Data\Options; -use function NewfoldLabs\WP\ModuleLoader\container; use function WP_Forge\Helpers\dataGet; /** @@ -72,11 +71,8 @@ public static function filter_redirect( $original_redirect, $user ) { } // Don't redirect to onboarding if the site is not a fresh installation. - if ( container()->has( 'isFreshInstallation' ) ) { - $is_fresh_installation = container()->get( 'isFreshInstallation' ); - if ( false === $is_fresh_installation ) { - return $original_redirect; - } + if ( false === Data::is_fresh_installation() ) { + return $original_redirect; } // Don't redirect to onboarding if the 'coming_soon' mode is off. The user has launched their site.