From 8879565c0ab72879f7baf66dd092b7713019869c Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 9 Sep 2015 01:13:24 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@33958 git-svn-id: http://core.svn.wordpress.org/trunk@33927 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/export.php | 4 ++-- wp-includes/class-wp-user.php | 3 +++ wp-includes/version.php | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php index ffabf52669..1c03e10b18 100644 --- a/wp-admin/includes/export.php +++ b/wp-admin/includes/export.php @@ -274,8 +274,8 @@ function export_wp( $args = array() ) { echo '' . $author->user_login . ''; echo '' . $author->user_email . ''; echo '' . wxr_cdata( $author->display_name ) . ''; - echo '' . wxr_cdata( $author->user_firstname ) . ''; - echo '' . wxr_cdata( $author->user_lastname ) . ''; + echo '' . wxr_cdata( $author->first_name ) . ''; + echo '' . wxr_cdata( $author->last_name ) . ''; echo "\n"; } } diff --git a/wp-includes/class-wp-user.php b/wp-includes/class-wp-user.php index d0bcb6538e..4005a6edc4 100644 --- a/wp-includes/class-wp-user.php +++ b/wp-includes/class-wp-user.php @@ -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 diff --git a/wp-includes/version.php b/wp-includes/version.php index b08adecd3b..03b9ca1fe4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-33957'; +$wp_version = '4.4-alpha-33958'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.