Docs: Add a missing access modifier to the declaration for the WP_User::__unset()
magic method, introduced in [34380].
Also adds missing documentation to the DocBlock. Fixes #20043. git-svn-id: https://develop.svn.wordpress.org/trunk@34390 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4c8a45fe8c
commit
16e2ecda05
@ -335,11 +335,14 @@ class WP_User {
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic method for unsetting a certain custom field
|
||||
* Magic method for unsetting a certain custom field.
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @access public
|
||||
*
|
||||
* @param string $key User meta key to unset.
|
||||
*/
|
||||
function __unset( $key ) {
|
||||
public function __unset( $key ) {
|
||||
if ( 'id' == $key ) {
|
||||
_deprecated_argument( 'WP_User->id', '2.1', __( 'Use <code>WP_User->ID</code> instead.' ) );
|
||||
$key = 'ID';
|
||||
|
Loading…
Reference in New Issue
Block a user