Make WordPress Core


Ignore:
Timestamp:
07/09/2019 01:08:47 AM (5 years ago)
Author:
pento
Message:

Coding Standards: Add missing translator comments to the default themes.

All default themes now have translator comments for all strings with placeholders!

See #46732.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwelve/content-aside.php

    r24131 r45609  
    77 * @since Twenty Twelve 1.0
    88 */
     9
     10/* translators: %s: post title */
     11$post_title = sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) );
    912?>
    1013
     
    1821
    1922        <footer class="entry-meta">
    20             <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
     23            <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( $post_title ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
    2124            <?php if ( comments_open() ) : ?>
    2225            <div class="comments-link">
Note: See TracChangeset for help on using the changeset viewer.