Make WordPress Core

Changeset 53263


Ignore:
Timestamp:
04/25/2022 11:09:57 PM (2 years ago)
Author:
davidbaumwald
Message:

Twenty Twenty-One: Make translator comments referencing the post title consistent.

Follow-up to [53221].

Props SergeyBiryukov.
Fixes #55564.

Location:
trunk/src/wp-content/themes/twentytwentyone
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/image.php

    r51304 r53263  
    6767                edit_post_link(
    6868                    sprintf(
    69                         /* translators: %s: Name of current post. Only visible to screen readers. */
     69                        /* translators: %s: Post title. Only visible to screen readers. */
    7070                        esc_html__( 'Edit %s', 'twentytwentyone' ),
    7171                        '<span class="screen-reader-text">' . get_the_title() . '</span>'
     
    9292                edit_post_link(
    9393                    sprintf(
    94                         /* translators: %s: Name of current post. Only visible to screen readers. */
     94                        /* translators: %s: Post title. Only visible to screen readers. */
    9595                        esc_html__( 'Edit %s', 'twentytwentyone' ),
    9696                        '<span class="screen-reader-text">' . get_the_title() . '</span>'
  • trunk/src/wp-content/themes/twentytwentyone/inc/template-tags.php

    r52929 r53263  
    8989            edit_post_link(
    9090                sprintf(
    91                     /* translators: %s: Name of current post. Only visible to screen readers. */
     91                    /* translators: %s: Post title. Only visible to screen readers. */
    9292                    esc_html__( 'Edit %s', 'twentytwentyone' ),
    9393                    '<span class="screen-reader-text">' . get_the_title() . '</span>'
     
    130130            edit_post_link(
    131131                sprintf(
    132                     /* translators: %s: Name of current post. Only visible to screen readers. */
     132                    /* translators: %s: Post title. Only visible to screen readers. */
    133133                    esc_html__( 'Edit %s', 'twentytwentyone' ),
    134134                    '<span class="screen-reader-text">' . get_the_title() . '</span>'
  • trunk/src/wp-content/themes/twentytwentyone/template-parts/content/content-page.php

    r50233 r53263  
    4545            edit_post_link(
    4646                sprintf(
    47                     /* translators: %s: Name of current post. Only visible to screen readers. */
     47                    /* translators: %s: Post title. Only visible to screen readers. */
    4848                    esc_html__( 'Edit %s', 'twentytwentyone' ),
    4949                    '<span class="screen-reader-text">' . get_the_title() . '</span>'
Note: See TracChangeset for help on using the changeset viewer.