Make WordPress Core


Ignore:
Timestamp:
12/06/2010 04:28:06 PM (14 years ago)
Author:
nacin
Message:

Fix handling of no titles and long titles in internal linking. see #11240.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/internal-linking.php

    r16561 r16750  
    5555        $results[] = array(
    5656            'ID' => $post->ID,
    57             'title' => esc_html( strip_tags($post->post_title) ),
     57            'title' => trim( esc_html( strip_tags( $post->post_title ) ) ),
    5858            'permalink' => get_permalink( $post->ID ),
    5959            'info' => $info,
Note: See TracChangeset for help on using the changeset viewer.