WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/08/2010 12:22:43 AM (10 years ago)
Author:
nacin
Message:

Handle posts without titles better in internal linking. see #11420.

File:
1 edited

Legend:

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

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