From b5dbd754d8f9dce80074c007baa82fb504199e07 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Tue, 3 Dec 2013 17:01:10 +0000 Subject: [PATCH] Twenty Fourteen: limit Help tab text to only "post" post type edit screen. Props obenland, see #25837. Built from https://develop.svn.wordpress.org/trunk@26555 git-svn-id: http://core.svn.wordpress.org/trunk@26446 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyfourteen/inc/customizer.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentyfourteen/inc/customizer.php b/wp-content/themes/twentyfourteen/inc/customizer.php index 7a4c652944..0f91d8d860 100644 --- a/wp-content/themes/twentyfourteen/inc/customizer.php +++ b/wp-content/themes/twentyfourteen/inc/customizer.php @@ -331,12 +331,16 @@ add_action( 'wp_enqueue_scripts', 'twentyfourteen_customizer_styles' ); * @return void */ function twentyfourteen_contextual_help() { + if ( 'admin_head-edit.php' === current_filter() && 'post' !== $GLOBALS['typenow'] ) { + return; + } + get_current_screen()->add_help_tab( array( 'id' => 'twentyfourteen', 'title' => __( 'Twenty Fourteen', 'twentyfourteen' ), 'content' => '', ) );