|
@@ 57-59 (lines=3) @@
|
| 54 |
|
* Reset notices for themes when switched or a new version of WC is installed. |
| 55 |
|
*/ |
| 56 |
|
public function reset_admin_notices() { |
| 57 |
|
if ( ! current_theme_supports( 'woocommerce' ) && ! in_array( get_option( 'template' ), wc_get_core_supported_themes() ) ) { |
| 58 |
|
self::add_notice( 'theme_support' ); |
| 59 |
|
} |
| 60 |
|
self::add_notice( 'template_files' ); |
| 61 |
|
} |
| 62 |
|
|
|
@@ 143-147 (lines=5) @@
|
| 140 |
|
* Show the Theme Check notice. |
| 141 |
|
*/ |
| 142 |
|
public function theme_check_notice() { |
| 143 |
|
if ( ! current_theme_supports( 'woocommerce' ) && ! in_array( get_option( 'template' ), wc_get_core_supported_themes() ) ) { |
| 144 |
|
include( 'views/html-notice-theme-support.php' ); |
| 145 |
|
} else { |
| 146 |
|
self::remove_notice( 'theme_support' ); |
| 147 |
|
} |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
/** |