Make WordPress Core

Ticket #39607: 39607.diff

File 39607.diff, 768 bytes (added by bor0, 9 years ago)
  • wp-includes/class-wp-editor.php

     
    13941394                        else
    13951395                                $info = $pts[ $post->post_type ]->labels->singular_name;
    13961396
     1397                        $parent_title = get_the_title( wp_get_post_parent_id( $post->ID ) );
     1398                        $title = get_the_title( $post );
     1399
     1400                        if ( strlen( $parent_title ) > 0 ) {
     1401                                $title .= ' [' . $parent_title . ']';
     1402                        }
     1403
    13971404                        $results[] = array(
    13981405                                'ID' => $post->ID,
    1399                                 'title' => trim( esc_html( strip_tags( get_the_title( $post ) ) ) ),
     1406                                'title' => trim( esc_html( strip_tags( $title ) ) ),
    14001407                                'permalink' => get_permalink( $post->ID ),
    14011408                                'info' => $info,
    14021409                        );