Escape attribute translation. Props nbachiyski. fixes #8010
git-svn-id: https://develop.svn.wordpress.org/trunk@9415 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7e5ff53d55
commit
60e40dbc72
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user