Translations in title attributes require esc_attr().

git-svn-id: http://svn.automattic.com/wordpress/trunk@17102 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2010-12-21 17:17:58 +00:00
parent a1d8c65604
commit 587ea006b5
13 changed files with 32 additions and 32 deletions

View File

@@ -142,7 +142,7 @@ class WP_Links_List_Table extends WP_List_Table {
echo '</td>';
break;
case 'url':
echo "<td $attributes><a href='$link->link_url' title='".sprintf( __( 'Visit %s' ), $link->link_name )."'>$short_url</a></td>";
echo "<td $attributes><a href='$link->link_url' title='". esc_attr( sprintf( __( 'Visit %s' ), $link->link_name ) )."'>$short_url</a></td>";
break;
case 'categories':
?><td <?php echo $attributes ?>><?php