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:
nacin
2010-12-06 16:28:06 +00:00
parent f4c63d53aa
commit e03399c715
6 changed files with 8 additions and 7 deletions

View File

@@ -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,
);