Make WordPress Core


Ignore:
Timestamp:
12/21/2010 05:17:58 PM (14 years ago)
Author:
ryan
Message:

Translations in title attributes require esc_attr().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r17076 r17102  
    10111011        $link = __('Edit This');
    10121012
    1013     $link = '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment->comment_ID ) . '" title="' . __( 'Edit comment' ) . '">' . $link . '</a>';
     1013    $link = '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment->comment_ID ) . '" title="' . esc_attr__( 'Edit comment' ) . '">' . $link . '</a>';
    10141014    echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID ) . $after;
    10151015}
     
    10521052        $link = __('Edit This');
    10531053
    1054     $link = '<a href="' . get_edit_bookmark_link( $bookmark ) . '" title="' . __( 'Edit Link' ) . '">' . $link . '</a>';
     1054    $link = '<a href="' . get_edit_bookmark_link( $bookmark ) . '" title="' . esc_attr__( 'Edit Link' ) . '">' . $link . '</a>';
    10551055    echo $before . apply_filters( 'edit_bookmark_link', $link, $bookmark->link_id ) . $after;
    10561056}
Note: See TracChangeset for help on using the changeset viewer.