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. Built from https://develop.svn.wordpress.org/trunk@34390 git-svn-id: http://core.svn.wordpress.org/trunk@34354 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
48213a5842
commit
4e1ca6b1aa
|
@ -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
|
* @since 4.4.0
|
||||||
|
* @access public
|
||||||
|
*
|
||||||
|
* @param string $key User meta key to unset.
|
||||||
*/
|
*/
|
||||||
function __unset( $key ) {
|
public function __unset( $key ) {
|
||||||
if ( 'id' == $key ) {
|
if ( 'id' == $key ) {
|
||||||
_deprecated_argument( 'WP_User->id', '2.1', __( 'Use <code>WP_User->ID</code> instead.' ) );
|
_deprecated_argument( 'WP_User->id', '2.1', __( 'Use <code>WP_User->ID</code> instead.' ) );
|
||||||
$key = 'ID';
|
$key = 'ID';
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-34389';
|
$wp_version = '4.4-alpha-34390';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue