Make WordPress Core

Ticket #25837: 25837.5.diff

File 25837.5.diff, 2.7 KB (added by siobhan, 11 years ago)

Updates help text

  • inc/customizer.php

     
    332332 */
    333333function twentyfourteen_contextual_help() {
    334334        get_current_screen()->add_help_tab( array(
     335                'id'      => 'twentyfourteen_image',
     336                'title'   => __( 'Featured Content', 'twentyfourteen featured image' ),
     337                'content' =>
     338                        '<p>' . sprintf( __( 'Display up to 6 posts on your homepage in either a grid or a slider. To do so, assign the <strong>featured</strong> tag.<br/><br/> If no posts match the tag, <a href="%3$s">sticky posts</a> will be displayed instead.<br/><br/> If you wish to change your layout or the tag used to feature content, visit <a href="%2$s">Appearance &rarr; Customize</a>.', 'twentyfourteen' ), admin_url( '/edit.php?tag=featured' ), admin_url( 'customize.php' ), admin_url( '/edit.php?show_sticky=1' ) ) . '</p>',
     339        ) );
     340        get_current_screen()->add_help_tab( array(
    335341                'id'      => 'twentyfourteen',
    336                 'title'   => __( 'Twenty Fourteen', 'twentyfourteen' ),
     342                'title'   => __( 'Featured Image', 'twentyfourteen featured content' ),
    337343                'content' =>
    338                         '<ul>' .
    339                                 '<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 &rarr; 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>' .
    340                                 '<li>' . sprintf( __( 'Enhance your site design by using <a href="%s">Featured Images</a> for posts you&rsquo;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&mdash;above the title&mdash;and in the Featured Content area on the home page.', 'twentyfourteen' ), 'http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail' ) . '</li>' .
    341                         '</ul>',
     344                        '<p>' . sprintf( __( '<a href="%s">Featured Images</a> are images associated with your posts. They can be used to enhance your website&rsquo;s design.<br/><br/> Twenty Fourteen displays featured images above the titles in posts and pages and in the Featured Content area on the home page.', 'twentyfourteen' ), 'http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail' ). '</p>',
    342345        ) );
    343346}
    344347add_action( 'admin_head-themes.php', 'twentyfourteen_contextual_help' );
    345 add_action( 'admin_head-edit.php',   'twentyfourteen_contextual_help' );
     348add_action( 'admin_head-post.php',   'twentyfourteen_contextual_help' );