|
@@ 58-60 (lines=3) @@
|
| 55 |
|
* Reset notices for themes when switched or a new version of WC is installed. |
| 56 |
|
*/ |
| 57 |
|
public function reset_admin_notices() { |
| 58 |
|
if ( ! current_theme_supports( 'woocommerce' ) && ! in_array( get_option( 'template' ), wc_get_core_supported_themes() ) ) { |
| 59 |
|
self::add_notice( 'theme_support' ); |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
$simplify_options = get_option( 'woocommerce_simplify_commerce_settings', array() ); |
| 63 |
|
|
|
@@ 182-186 (lines=5) @@
|
| 179 |
|
* Show the Theme Check notice. |
| 180 |
|
*/ |
| 181 |
|
public function theme_check_notice() { |
| 182 |
|
if ( ! current_theme_supports( 'woocommerce' ) && ! in_array( get_option( 'template' ), wc_get_core_supported_themes() ) ) { |
| 183 |
|
include( 'views/html-notice-theme-support.php' ); |
| 184 |
|
} else { |
| 185 |
|
self::remove_notice( 'theme_support' ); |
| 186 |
|
} |
| 187 |
|
} |
| 188 |
|
|
| 189 |
|
/** |