Ticket #11307: 11307_BulkEdit-notitle-fix.diff
File 11307_BulkEdit-notitle-fix.diff, 758 bytes (added by , 14 years ago) |
---|
-
wp-admin/includes/template.php
1290 1290 if ( ! current_user_can('edit_' . $post->post_type, $post->ID) ) 1291 1291 return; 1292 1292 1293 $title = esc_attr( $post->post_title);1293 $title = esc_attr( get_the_title( $post->ID ) ); 1294 1294 1295 1295 echo ' 1296 1296 <div class="hidden" id="inline_' . $post->ID . '"> … … 3360 3360 * @param int $id The post id. If not supplied the global $post is used. 3361 3361 * 3362 3362 */ 3363 function _draft_or_post_title($post_id = 0) 3364 { 3363 function _draft_or_post_title($post_id = 0) { 3365 3364 $title = get_the_title($post_id); 3366 3365 if ( empty($title) ) 3367 3366 $title = __('(no title)');