WordPress.org

Make WordPress Core

Ticket #11307: 11307_BulkEdit-notitle-fix.diff

File 11307_BulkEdit-notitle-fix.diff, 758 bytes (added by nacin, 6 years ago)
  • wp-admin/includes/template.php

     
    12901290        if ( ! current_user_can('edit_' . $post->post_type, $post->ID) ) 
    12911291                return; 
    12921292 
    1293         $title = esc_attr($post->post_title); 
     1293        $title = esc_attr( get_the_title( $post->ID ) ); 
    12941294 
    12951295        echo ' 
    12961296<div class="hidden" id="inline_' . $post->ID . '"> 
     
    33603360 * @param int $id The post id. If not supplied the global $post is used. 
    33613361 * 
    33623362 */ 
    3363 function _draft_or_post_title($post_id = 0) 
    3364 { 
     3363function _draft_or_post_title($post_id = 0) { 
    33653364        $title = get_the_title($post_id); 
    33663365        if ( empty($title) ) 
    33673366                $title = __('(no title)');