Make WordPress Core

Changeset 33958


Ignore:
Timestamp:
09/09/2015 01:12:41 AM (9 years ago)
Author:
wonderboymusic
Message:

In WP_User, add @property docs for description, first_name, and last_name. user_firstname and user_lastname only exist for back-compat.

See #33491.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/export.php

    r33891 r33958  
    275275            echo '<wp:author_email>' . $author->user_email . '</wp:author_email>';
    276276            echo '<wp:author_display_name>' . wxr_cdata( $author->display_name ) . '</wp:author_display_name>';
    277             echo '<wp:author_first_name>' . wxr_cdata( $author->user_firstname ) . '</wp:author_first_name>';
    278             echo '<wp:author_last_name>' . wxr_cdata( $author->user_lastname ) . '</wp:author_last_name>';
     277            echo '<wp:author_first_name>' . wxr_cdata( $author->first_name ) . '</wp:author_first_name>';
     278            echo '<wp:author_last_name>' . wxr_cdata( $author->last_name ) . '</wp:author_last_name>';
    279279            echo "</wp:author>\n";
    280280        }
  • trunk/src/wp-includes/class-wp-user.php

    r33847 r33958  
    88 *
    99 * @property string $nickname
     10 * @property string $description
    1011 * @property string $user_description
     12 * @property string $first_name
    1113 * @property string $user_firstname
     14 * @property string $last_name
    1215 * @property string $user_lastname
    1316 * @property string $user_login
Note: See TracChangeset for help on using the changeset viewer.