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
This commit is contained in:
parent
0f662479db
commit
7912dd4561
@ -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 '
|
||||
<div class="hidden" id="inline_' . $post->ID . '">
|
||||
|
Loading…
Reference in New Issue
Block a user