From 6dee98666eed640190ca236a8c0b4d892acffaa2 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sun, 25 Jan 2015 16:41:22 +1100 Subject: [PATCH] Hide theme notice from welcome pages --- includes/admin/class-sp-admin-notices.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/class-sp-admin-notices.php b/includes/admin/class-sp-admin-notices.php index 56485b7e..e9adc5e5 100644 --- a/includes/admin/class-sp-admin-notices.php +++ b/includes/admin/class-sp-admin-notices.php @@ -55,7 +55,7 @@ class SP_Admin_Notices { update_option( 'sportspress_admin_notices', $notices ); } - if ( in_array( 'theme_support', $notices ) && ! current_theme_supports( 'sportspress' ) ) { + if ( in_array( 'theme_support', $notices ) && ! current_theme_supports( 'sportspress' ) && ! in_array( $screen->id, array( 'toplevel_page_sportspress', 'dashboard_page_sp-about', 'dashboard_page_sp-credits', 'dashboard_page_sp-translators' ) ) ) { $template = get_option( 'template' ); if ( ! in_array( $template, array( 'twentyfourteen', 'twentythirteen', 'twentyeleven', 'twentytwelve', 'twentyten' ) ) ) {