From 0ee19cf7af14cd576b05d5738fd577aa68b8b3fd Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 5 Feb 2011 18:27:36 +0000 Subject: [PATCH] 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 --- wp-admin/includes/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index ea1c80565f..37738f9967 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -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 '