Skip to content

Commit

Permalink
Merge pull request woocommerce#18406 from woocommerce/update/themenotice
Browse files Browse the repository at this point in the history
Remove unsupported theme notice
  • Loading branch information
mikejolley authored Jan 11, 2018
2 parents 7f62692 + a3d0d71 commit fbbbc7a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions includes/admin/class-wc-admin-notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class WC_Admin_Notices {
'install' => 'install_notice',
'update' => 'update_notice',
'template_files' => 'template_file_check_notice',
'theme_support' => 'theme_check_notice',
'legacy_shipping' => 'legacy_shipping_notice',
'no_shipping_methods' => 'no_shipping_methods_notice',
'simplify_commerce' => 'simplify_commerce_notice',
Expand Down Expand Up @@ -79,10 +78,6 @@ public static function remove_all_notices() {
* Reset notices for themes when switched or a new version of WC is installed.
*/
public static function reset_admin_notices() {
if ( ! current_theme_supports( 'woocommerce' ) ) {
self::add_notice( 'theme_support' );
}

$simplify_options = get_option( 'woocommerce_simplify_commerce_settings', array() );
$location = wc_get_base_location();

Expand Down Expand Up @@ -214,12 +209,14 @@ public static function install_notice() {

/**
* Show the Theme Check notice.
*
* @todo Remove this next major release.
*/
public static function theme_check_notice() {
wc_deprecated_function( 'WC_Admin_Notices::theme_check_notice', '3.3.0' );

if ( ! current_theme_supports( 'woocommerce' ) ) {
include( 'views/html-notice-theme-support.php' );
} else {
self::remove_notice( 'theme_support' );
}
}

Expand Down

0 comments on commit fbbbc7a

Please sign in to comment.