Fix handling of no titles and long titles in internal linking. see #11240.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -54,7 +54,7 @@ function wp_link_query( $args = array() ) {
|
||||
|
||||
$results[] = array(
|
||||
'ID' => $post->ID,
|
||||
'title' => esc_html( strip_tags($post->post_title) ),
|
||||
'title' => trim( esc_html( strip_tags( $post->post_title ) ) ),
|
||||
'permalink' => get_permalink( $post->ID ),
|
||||
'info' => $info,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user