diff --git a/plugins/woocommerce/includes/class-wc-install.php b/plugins/woocommerce/includes/class-wc-install.php index cb8d8153426..0d3fd7ec0d6 100644 --- a/plugins/woocommerce/includes/class-wc-install.php +++ b/plugins/woocommerce/includes/class-wc-install.php @@ -388,7 +388,7 @@ class WC_Install { * * @return bool */ - public static function is_installing() { + private static function is_installing() { return 'yes' === get_transient( 'wc_installing' ); } diff --git a/plugins/woocommerce/src/Admin/Features/OnboardingTasks/DeprecatedOptions.php b/plugins/woocommerce/src/Admin/Features/OnboardingTasks/DeprecatedOptions.php index cfa45232665..60ffbadb185 100644 --- a/plugins/woocommerce/src/Admin/Features/OnboardingTasks/DeprecatedOptions.php +++ b/plugins/woocommerce/src/Admin/Features/OnboardingTasks/DeprecatedOptions.php @@ -30,9 +30,9 @@ class DeprecatedOptions { * @return string */ public static function get_deprecated_options( $pre_option, $option ) { - if ( WC_Install::is_installing() ) { + if ( defined( 'WC_INSTALLING' ) && WC_INSTALLING === true ) { return $pre_option; - }; + } $hidden = get_option( 'woocommerce_task_list_hidden_lists', array() ); switch ( $option ) {