From 7912dd456142e6c19777e8f45ac362d47e6e934a Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 10 Nov 2010 17:08:05 +0000 Subject: [PATCH] Use direct post_title instead of get_the_title() in get_inline_data(). reverts [13079] but adds trim() to solve original bug. fixes #14323, props filosofo. git-svn-id: https://develop.svn.wordpress.org/trunk@16278 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 0a3d9b1d0f..114b1bf955 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -268,7 +268,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 = esc_attr( trim( $post->post_title ) ); echo '