From 3f8f3ccff09239b4173f2d139f8f7d4a9f8af921 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 22 Sep 2015 04:55:50 +0000 Subject: [PATCH] Users: clarify the docs for `WP_User::__set` to make it clear that it does save data in the database. Props johnpbloch. Fixes #24255. git-svn-id: https://develop.svn.wordpress.org/trunk@34379 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-user.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wp-includes/class-wp-user.php b/src/wp-includes/class-wp-user.php index 2fa64c25fb..5d57a996ff 100644 --- a/src/wp-includes/class-wp-user.php +++ b/src/wp-includes/class-wp-user.php @@ -305,6 +305,9 @@ class WP_User { /** * Magic method for setting custom user fields. * + * This method does not update custom fields in the database. It only stores + * the value on the WP_User instance. + * * @since 3.3.0 * @access public *