Ticket #39607: 39607.diff
| File 39607.diff, 768 bytes (added by , 9 years ago) |
|---|
-
wp-includes/class-wp-editor.php
1394 1394 else 1395 1395 $info = $pts[ $post->post_type ]->labels->singular_name; 1396 1396 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 1397 1404 $results[] = array( 1398 1405 'ID' => $post->ID, 1399 'title' => trim( esc_html( strip_tags( get_the_title( $post )) ) ),1406 'title' => trim( esc_html( strip_tags( $title ) ) ), 1400 1407 'permalink' => get_permalink( $post->ID ), 1401 1408 'info' => $info, 1402 1409 );