From 4e1ca6b1aaec07d5cde4d12193b42d5cd84b1c69 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 22 Sep 2015 10:07:23 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp-user.php | 7 +++++-- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-user.php b/wp-includes/class-wp-user.php index 20a00ff139..9b4746a034 100644 --- a/wp-includes/class-wp-user.php +++ b/wp-includes/class-wp-user.php @@ -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 WP_User->ID instead.' ) ); $key = 'ID'; diff --git a/wp-includes/version.php b/wp-includes/version.php index 009c1f8d33..0d3a81d12c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.