Escape attribute translation. Props nbachiyski. fixes #8010

git-svn-id: http://svn.automattic.com/wordpress/trunk@9415 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-10-30 15:53:58 +00:00
parent 166ccef6c3
commit 55feabee97
1 changed files with 1 additions and 1 deletions

View File

@ -722,7 +722,7 @@ function edit_post_link( $link = 'Edit This', $before = '', $after = '' ) {
return;
}
$link = '<a href="' . get_edit_post_link( $post->ID ) . '" title="' . __( 'Edit post' ) . '">' . $link . '</a>';
$link = '<a href="' . get_edit_post_link( $post->ID ) . '" title="' . attribute_escape( __( 'Edit post' ) ) . '">' . $link . '</a>';
echo $before . apply_filters( 'edit_post_link', $link, $post->ID ) . $after;
}