mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
e0cef41f09
commit
4c8a45fe8c
@ -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 ) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user