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

git-svn-id: https://develop.svn.wordpress.org/trunk@18909 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2011-10-07 02:34:41 +00:00
parent a488f8e686
commit b412d5f082
2 changed files with 28 additions and 19 deletions
+2 -1
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;