Properly encode the post title. Props koopersmith, nacin. For trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@17395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7cfc0088d6
commit
687c69d009
|
@ -270,7 +270,7 @@ function get_inline_data($post) {
|
|||
if ( ! current_user_can($post_type_object->cap->edit_post, $post->ID) )
|
||||
return;
|
||||
|
||||
$title = esc_attr( trim( $post->post_title ) );
|
||||
$title = htmlspecialchars( trim( $post->post_title ), ENT_QUOTES );
|
||||
|
||||
echo '
|
||||
<div class="hidden" id="inline_' . $post->ID . '">
|
||||
|
|
Loading…
Reference in New Issue