mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user