Changeset 2636 for trunk/wp-includes/template-functions-author.php
- Timestamp:
- 06/13/2005 08:32:44 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-author.php
r2633 r2636 27 27 28 28 function get_the_author_firstname() { 29 global $id,$authordata; return $authordata-> user_firstname;29 global $id,$authordata; return $authordata->first_name; 30 30 } 31 31 function the_author_firstname() { … … 34 34 35 35 function get_the_author_lastname() { 36 global $id,$authordata; return $authordata-> user_lastname;36 global $id,$authordata; return $authordata->last_name; 37 37 } 38 38 function the_author_lastname() { … … 41 41 42 42 function get_the_author_nickname() { 43 global $id,$authordata; return $authordata-> user_nickname;43 global $id,$authordata; return $authordata->nickname; 44 44 } 45 45 function the_author_nickname() { … … 71 71 72 72 function get_the_author_icq() { 73 global $id,$authordata; return $authordata-> user_icq;73 global $id,$authordata; return $authordata->icq; 74 74 } 75 75 function the_author_icq() { … … 78 78 79 79 function get_the_author_aim() { 80 global $id,$authordata; return str_replace(' ', '+', $authordata-> user_aim);80 global $id,$authordata; return str_replace(' ', '+', $authordata->aim); 81 81 } 82 82 function the_author_aim() { … … 85 85 86 86 function get_the_author_yim() { 87 global $id,$authordata; return $authordata-> user_yim;87 global $id,$authordata; return $authordata->yim; 88 88 } 89 89 function the_author_yim() { … … 92 92 93 93 function get_the_author_msn() { 94 global $id,$authordata; return $authordata-> user_msn;94 global $id,$authordata; return $authordata->msn; 95 95 } 96 96 function the_author_msn() { … … 99 99 100 100 function get_the_author_posts() { 101 global $id,$post; $posts=get_usernumposts($post->post_author); return $posts; 101 global $id,$post; 102 $posts=get_usernumposts($post->post_author); 103 return $posts; 102 104 } 103 105 function the_author_posts() { … … 153 155 $author = get_userdata( $author->ID ); 154 156 $posts = get_usernumposts($author->ID); 155 $name = $author-> user_nickname;156 157 if ($show_fullname && ($author-> user_firstname != '' && $author->user_lastname != '')) {158 $name = "$author-> user_firstname $author->user_lastname";157 $name = $author->nickname; 158 159 if ($show_fullname && ($author->first_name != '' && $author->last_name != '')) { 160 $name = "$author->first_name $author->last_name"; 159 161 } 160 162 … … 164 166 $link = $name; 165 167 } else { 166 $link = '<a href="' . get_author_link(0, $author->ID, $author->user_nicename) . '" title="' . sprintf(__("Posts by %s"), wp_specialchars($author-> user_nickname)) . '">' . $name . '</a>';168 $link = '<a href="' . get_author_link(0, $author->ID, $author->user_nicename) . '" title="' . sprintf(__("Posts by %s"), wp_specialchars($author->display_name)) . '">' . $name . '</a>'; 167 169 168 170 if ( (! empty($feed_image)) || (! empty($feed)) ) {
Note: See TracChangeset
for help on using the changeset viewer.