Ticket #24084: 24084.patch
File 24084.patch, 2.7 KB (added by , 12 years ago) |
---|
-
wp-admin/edit-form-advanced.php
463 463 <td id="wp-word-count"><?php printf( __( 'Word count: %s' ), '<span class="word-count">0</span>' ); ?></td> 464 464 <td class="autosave-info"> 465 465 <span class="autosave-message"> </span> 466 <?php 466 <span id="last-edit"> 467 <?php 468 467 469 if ( 'auto-draft' != $post->post_status ) { 468 echo '<span id="last-edit">'; 469 if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) { 470 $last_user = get_userdata($last_id); 471 printf(__('Last edited by %1$s on %2$s at %3$s'), esc_html( $last_user->display_name ), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); 472 } else { 473 printf(__('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); 474 } 475 echo '</span>'; 476 } ?> 470 if ( ( $last_id = get_post_meta( $post_ID, '_edit_last', true ) ) && ( $last_user = get_userdata( $last_id ) ) ) 471 printf( __('Last edited by %1$s on %2$s at %3$s'), esc_html( $last_user->display_name ), mysql2date( get_option('date_format'), $post->post_modified ), mysql2date( get_option('time_format'), $post->post_modified ) ); 472 else 473 printf( __('Last edited on %1$s at %2$s'), mysql2date( get_option('date_format'), $post->post_modified ), mysql2date( get_option('time_format'), $post->post_modified ) ); 474 } 475 476 ?> 477 </span> 477 478 </td> 478 479 </tr></tbody></table> 479 480 480 481 </div> 481 <?php } 482 <?php 483 } 482 484 483 485 if ( has_action( 'edit_form_after_editor' ) ) { 484 486 echo '<div class="edit-form-section">'; 485 487 do_action( 'edit_form_after_editor' ); 486 488 echo '</div>'; 487 489 } 490 488 491 ?> 489 492 </div><!-- /post-body-content --> 490 493 -
wp-includes/comment-template.php
22 22 */ 23 23 function get_comment_author( $comment_ID = 0 ) { 24 24 $comment = get_comment( $comment_ID ); 25 if ( empty($comment->comment_author) ) { 26 if (!empty($comment->user_id)){27 $user=get_userdata($comment->user_id);28 $author =$user->user_login;29 } else {25 26 if ( empty( $comment->comment_author ) ) { 27 if ( ! empty( $comment->user_id ) && ( $user = get_userdata( $comment->user_id ) ) ) 28 $author = $user->display_name; 29 else 30 30 $author = __('Anonymous'); 31 }32 31 } else { 33 32 $author = $comment->comment_author; 34 33 } 35 return apply_filters('get_comment_author', $author); 34 35 return apply_filters( 'get_comment_author', $author ); 36 36 } 37 37 38 38 /**