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. git-svn-id: https://develop.svn.wordpress.org/trunk@33958 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
297df83c5d
commit
5936394bb6
@ -274,8 +274,8 @@ function export_wp( $args = array() ) {
|
||||
echo '<wp:author_login>' . $author->user_login . '</wp:author_login>';
|
||||
echo '<wp:author_email>' . $author->user_email . '</wp:author_email>';
|
||||
echo '<wp:author_display_name>' . wxr_cdata( $author->display_name ) . '</wp:author_display_name>';
|
||||
echo '<wp:author_first_name>' . wxr_cdata( $author->user_firstname ) . '</wp:author_first_name>';
|
||||
echo '<wp:author_last_name>' . wxr_cdata( $author->user_lastname ) . '</wp:author_last_name>';
|
||||
echo '<wp:author_first_name>' . wxr_cdata( $author->first_name ) . '</wp:author_first_name>';
|
||||
echo '<wp:author_last_name>' . wxr_cdata( $author->last_name ) . '</wp:author_last_name>';
|
||||
echo "</wp:author>\n";
|
||||
}
|
||||
}
|
||||
|
@ -7,8 +7,11 @@
|
||||
* @subpackage User
|
||||
*
|
||||
* @property string $nickname
|
||||
* @property string $description
|
||||
* @property string $user_description
|
||||
* @property string $first_name
|
||||
* @property string $user_firstname
|
||||
* @property string $last_name
|
||||
* @property string $user_lastname
|
||||
* @property string $user_login
|
||||
* @property string $user_pass
|
||||
|
Loading…
Reference in New Issue
Block a user