Make is_installing private
This commit is contained in:
parent
b37421fb98
commit
818a1dcff7
|
@ -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' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 ) {
|
||||||
|
|
Loading…
Reference in New Issue