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
This commit is contained in:
parent
8fea99016f
commit
e7522d6413
@ -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' =>
|
||||
'<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>' .
|
||||
'</ul>',
|
||||
) );
|
||||
|
Loading…
Reference in New Issue
Block a user