Make is_installing private

This commit is contained in:
moon 2022-04-13 06:46:02 -07:00
parent b37421fb98
commit 818a1dcff7
2 changed files with 3 additions and 3 deletions

View File

@ -388,7 +388,7 @@ class WC_Install {
* *
* @return bool * @return bool
*/ */
public static function is_installing() { private static function is_installing() {
return 'yes' === get_transient( 'wc_installing' ); return 'yes' === get_transient( 'wc_installing' );
} }

View File

@ -30,9 +30,9 @@ class DeprecatedOptions {
* @return string * @return string
*/ */
public static function get_deprecated_options( $pre_option, $option ) { public static function get_deprecated_options( $pre_option, $option ) {
if ( WC_Install::is_installing() ) { if ( defined( 'WC_INSTALLING' ) && WC_INSTALLING === true ) {
return $pre_option; return $pre_option;
}; }
$hidden = get_option( 'woocommerce_task_list_hidden_lists', array() ); $hidden = get_option( 'woocommerce_task_list_hidden_lists', array() );
switch ( $option ) { switch ( $option ) {