Hide theme notice from welcome pages

This commit is contained in:
Brian Miyaji
2015-01-25 16:41:22 +11:00
parent c196dd8779
commit 6dee98666e

View File

@@ -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' ) ) ) {