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:
Drew Jaynes 2015-09-22 10:06:56 +00:00
parent 4c8a45fe8c
commit 16e2ecda05

View File

@ -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';