Docs: Fix some syntactical issues and add missing parameter and return descriptions to the DocBlock for the `WP_User::__get()` magic method.
See #32246. Built from https://develop.svn.wordpress.org/trunk@34389 git-svn-id: http://core.svn.wordpress.org/trunk@34353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fd82198aad
commit
48213a5842
|
@ -283,11 +283,13 @@ class WP_User {
|
|||
}
|
||||
|
||||
/**
|
||||
* Magic method for accessing custom fields
|
||||
* Magic method for accessing custom fields.
|
||||
*
|
||||
* @since 3.3.0
|
||||
* @param string $key
|
||||
* @return mixed
|
||||
* @access public
|
||||
*
|
||||
* @param string $key User meta key to retrieve.
|
||||
* @return mixed Value of the given user meta key (if set). If `$key` is 'id', the user ID.
|
||||
*/
|
||||
public function __get( $key ) {
|
||||
if ( 'id' == $key ) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-34388';
|
||||
$wp_version = '4.4-alpha-34389';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue