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
This commit is contained in:
Lance Willett 2013-12-03 17:01:10 +00:00
parent 3a68881300
commit b5dbd754d8

View File

@ -331,6 +331,10 @@ 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' ),