WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/20/2011 03:04:46 PM (10 years ago)
Author:
nacin
Message:

Translated strings in attributes require esc_attr(). s/_e/esc_attr_e/g

File:
1 edited

Legend:

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

    r17340 r19028  
    7171<?php if ( is_user_logged_in() ) : ?>
    7272
    73 <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account'); ?>"><?php _e('Log out &raquo;'); ?></a></p>
     73<p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.'), get_option('siteurl') . '/wp-admin/profile.php', $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>
    7474
    7575<?php else : ?>
     
    9090<p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea></p>
    9191
    92 <p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment'); ?>" />
     92<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php esc_attr_e('Submit Comment'); ?>" />
    9393<?php comment_id_fields(); ?>
    9494</p>
Note: See TracChangeset for help on using the changeset viewer.