From e7522d64136a082c9b1213ec57fa400e00971174 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Tue, 3 Dec 2013 17:01:00 +0000 Subject: [PATCH] Twenty Fourteen: limit Help tab text to only "post" post type edit screen. Props obenland, see #25837. git-svn-id: https://develop.svn.wordpress.org/trunk@26555 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyfourteen/inc/customizer.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wp-content/themes/twentyfourteen/inc/customizer.php b/src/wp-content/themes/twentyfourteen/inc/customizer.php index 7a4c652944..0f91d8d860 100644 --- a/src/wp-content/themes/twentyfourteen/inc/customizer.php +++ b/src/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' => '', ) );