Changeset 9781 for trunk/wp-includes/comment-template.php
- Timestamp:
- 11/19/2008 06:58:44 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/comment-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment-template.php
r9773 r9781 22 22 function get_comment_author() { 23 23 global $comment; 24 if ( empty($comment->comment_author) ) 25 $author = __('Anonymous'); 26 else 24 if ( empty($comment->comment_author) ) { 25 if (!empty($comment->user_id)){ 26 $user=get_userdata($comment->user_id); 27 $author=$user->user_login; 28 } else { 29 $author = __('Anonymous'); 30 } 31 } else { 27 32 $author = $comment->comment_author; 33 } 28 34 return apply_filters('get_comment_author', $author); 29 35 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)