|
@@ 83-85 (lines=3) @@
|
| 80 |
|
* Reset notices for themes when switched or a new version of WC is installed. |
| 81 |
|
*/ |
| 82 |
|
public static function reset_admin_notices() { |
| 83 |
|
if ( ! current_theme_supports( 'woocommerce' ) && ! in_array( get_option( 'template' ), wc_get_core_supported_themes() ) ) { |
| 84 |
|
self::add_notice( 'theme_support' ); |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
$simplify_options = get_option( 'woocommerce_simplify_commerce_settings', array() ); |
| 88 |
|
|
|
@@ 217-221 (lines=5) @@
|
| 214 |
|
* Show the Theme Check notice. |
| 215 |
|
*/ |
| 216 |
|
public static function theme_check_notice() { |
| 217 |
|
if ( ! current_theme_supports( 'woocommerce' ) && ! in_array( get_option( 'template' ), wc_get_core_supported_themes() ) ) { |
| 218 |
|
include( 'views/html-notice-theme-support.php' ); |
| 219 |
|
} else { |
| 220 |
|
self::remove_notice( 'theme_support' ); |
| 221 |
|
} |
| 222 |
|
} |
| 223 |
|
|
| 224 |
|
/** |