mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 15:47:38 +02:00
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:
parent
3a68881300
commit
b5dbd754d8
@ -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' ),
|
||||
|
Loading…
Reference in New Issue
Block a user