Properly encode the post title. Props koopersmith, nacin. For 3.0

git-svn-id: http://svn.automattic.com/wordpress/branches/3.0@17397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-02-05 18:27:36 +00:00
parent b11819e607
commit 0ee19cf7af
1 changed files with 1 additions and 1 deletions

View File

@ -1185,7 +1185,7 @@ function get_inline_data($post) {
if ( ! current_user_can($post_type_object->cap->edit_post, $post->ID) )
return;
$title = esc_attr( get_the_title( $post->ID ) );
$title = htmlspecialchars( trim( $post->post_title ), ENT_QUOTES );
echo '
<div class="hidden" id="inline_' . $post->ID . '">