mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
166ccef6c3
commit
55feabee97
@ -722,7 +722,7 @@ function edit_post_link( $link = 'Edit This', $before = '', $after = '' ) {
|
|||||||
return;
|
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;
|
echo $before . apply_filters( 'edit_post_link', $link, $post->ID ) . $after;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user