Make WordPress Core


Ignore:
Timestamp:
06/13/2005 08:32:44 AM (19 years ago)
Author:
matt
Message:

User data migration should be complete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-author.php

    r2633 r2636  
    2727
    2828function get_the_author_firstname() {
    29     global $id,$authordata;    return $authordata->user_firstname;
     29    global $id,$authordata;    return $authordata->first_name;
    3030}
    3131function the_author_firstname() {
     
    3434
    3535function get_the_author_lastname() {
    36     global $id,$authordata;    return $authordata->user_lastname;
     36    global $id,$authordata;    return $authordata->last_name;
    3737}
    3838function the_author_lastname() {
     
    4141
    4242function get_the_author_nickname() {
    43     global $id,$authordata;    return $authordata->user_nickname;
     43    global $id,$authordata;    return $authordata->nickname;
    4444}
    4545function the_author_nickname() {
     
    7171
    7272function get_the_author_icq() {
    73     global $id,$authordata;    return $authordata->user_icq;
     73    global $id,$authordata;    return $authordata->icq;
    7474}
    7575function the_author_icq() {
     
    7878
    7979function get_the_author_aim() {
    80     global $id,$authordata;    return str_replace(' ', '+', $authordata->user_aim);
     80    global $id,$authordata;    return str_replace(' ', '+', $authordata->aim);
    8181}
    8282function the_author_aim() {
     
    8585
    8686function get_the_author_yim() {
    87     global $id,$authordata;    return $authordata->user_yim;
     87    global $id,$authordata;    return $authordata->yim;
    8888}
    8989function the_author_yim() {
     
    9292
    9393function get_the_author_msn() {
    94     global $id,$authordata;    return $authordata->user_msn;
     94    global $id,$authordata;    return $authordata->msn;
    9595}
    9696function the_author_msn() {
     
    9999
    100100function 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;
    102104}
    103105function the_author_posts() {
     
    153155        $author = get_userdata( $author->ID );
    154156        $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";
    159161        }
    160162       
     
    164166                $link = $name;
    165167        } 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>';
    167169
    168170            if ( (! empty($feed_image)) || (! empty($feed)) ) {
Note: See TracChangeset for help on using the changeset viewer.