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,12 +331,16 @@ add_action( 'wp_enqueue_scripts', 'twentyfourteen_customizer_styles' );
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function twentyfourteen_contextual_help() {
|
function twentyfourteen_contextual_help() {
|
||||||
|
if ( 'admin_head-edit.php' === current_filter() && 'post' !== $GLOBALS['typenow'] ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
get_current_screen()->add_help_tab( array(
|
get_current_screen()->add_help_tab( array(
|
||||||
'id' => 'twentyfourteen',
|
'id' => 'twentyfourteen',
|
||||||
'title' => __( 'Twenty Fourteen', 'twentyfourteen' ),
|
'title' => __( 'Twenty Fourteen', 'twentyfourteen' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<ul>' .
|
'<ul>' .
|
||||||
'<li>' . sprintf( __( 'The home page features your choice of up to 6 posts prominently displayed in a grid or slider, controlled by the <a href="%1$s">"featured" tag</a>; you can change the tag and layout in <a href="%2$s">Appearance → Customize</a>. If no posts match the tag, <a href="%3$s">"sticky" posts</a> will be displayed instead.', 'twentyfourteen' ), admin_url( '/edit.php?tag=featured' ), admin_url( 'customize.php' ), admin_url( '/edit.php?show_sticky=1' ) ). '</li>' .
|
'<li>' . sprintf( __( 'The home page features your choice of up to 6 posts prominently displayed in a grid or slider, controlled by the <a href="%1$s">"featured" tag</a>; you can change the tag and layout in <a href="%2$s">Appearance → Customize</a>. If no posts match the tag, <a href="%3$s">"sticky" posts</a> will be displayed instead.', 'twentyfourteen' ), admin_url( '/edit.php?tag=featured' ), admin_url( 'customize.php' ), admin_url( '/edit.php?show_sticky=1' ) ) . '</li>' .
|
||||||
'<li>' . sprintf( __( 'Enhance your site design by using <a href="%s">Featured Images</a> for posts you’d like to stand out (also known as post thumbnails). This allows you to associate an image with your post without inserting it. Twenty Fourteen uses featured images for posts and pages—above the title—and in the Featured Content area on the home page.', 'twentyfourteen' ), 'http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail' ) . '</li>' .
|
'<li>' . sprintf( __( 'Enhance your site design by using <a href="%s">Featured Images</a> for posts you’d like to stand out (also known as post thumbnails). This allows you to associate an image with your post without inserting it. Twenty Fourteen uses featured images for posts and pages—above the title—and in the Featured Content area on the home page.', 'twentyfourteen' ), 'http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail' ) . '</li>' .
|
||||||
'</ul>',
|
'</ul>',
|
||||||
) );
|
) );
|
||||||
|
Loading…
Reference in New Issue
Block a user