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:
parent
b11819e607
commit
0ee19cf7af
|
@ -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 . '">
|
||||
|
|
Loading…
Reference in New Issue