WordPress.org

Make WordPress Core

Changeset 35455


Ignore:
Timestamp:
10/30/2015 10:37:09 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Don't use <a> in translatable string in theme-compat/comments.php.

Add translator comments.

Props ramiy.
See #34503.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme-compat/comments.php

    r34316 r35455  
    88 *
    99 */
    10 _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
     10_deprecated_file(
     11    /* translators: %s: template name */
     12    sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
     13    '3.0',
     14    null,
     15    /* translators: %s: template name */
     16    sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) )
     17);
    1118
    1219// Do not delete these lines
     
    8087<?php if ( is_user_logged_in() ) : ?>
    8188
    82 <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.'), get_edit_user_link(), $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php esc_attr_e('Log out of this account'); ?>"><?php _e('Log out &raquo;'); ?></a></p>
     89<p><?php /* translators: %s: user profile link  */
     90printf( __( 'Logged in as %s.' ), sprintf( '<a href="%1$s">%2$s</a>', get_edit_user_link(), $user_identity ) ); ?>
     91<a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php esc_attr_e( 'Log out of this account' ); ?>"><?php _e( 'Log out &raquo;' ); ?></a></p>
    8392
    8493<?php else : ?>
Note: See TracChangeset for help on using the changeset viewer.