Docs: Fix some syntactical issues and add missing parameter and return descriptions to the DocBlock for the WP_User::__get() magic method.

See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@34389 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2015-09-22 10:01:01 +00:00
parent e0cef41f09
commit 4c8a45fe8c

View File

@ -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 ) {