Don't stomp meta fields in wp_update_user(). Props scribu. see #15458

git-svn-id: http://svn.automattic.com/wordpress/trunk@18909 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2011-10-07 02:34:41 +00:00
parent 653a6c1108
commit 8f50fdf79a
2 changed files with 28 additions and 19 deletions

View File

@@ -474,6 +474,7 @@ class WP_User {
*
* @param string $field The field to query against: 'id', 'slug', 'email' or 'login'
* @param string|int $value The field value
* @return object Raw user object
*/
static function get_data_by( $field, $value ) {
global $wpdb;
@@ -618,10 +619,10 @@ class WP_User {
* property matching the 'cap_key' exists and is an array. If so, it will be
* used.
*
* @access protected
* @since 2.1.0
*
* @param string $cap_key Optional capability key
* @access protected
*/
function _init_caps( $cap_key = '' ) {
global $wpdb;