WordPress.org

Make WordPress Core

Changeset 18936


Ignore:
Timestamp:
10/10/11 23:14:38 (3 years ago)
Author:
ryan
Message:

Avoid warning when creating new users. fixes #18898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r18928 r18936  
    13551355 
    13561356    foreach ( _get_additional_user_keys( $user ) as $key ) { 
    1357         update_user_meta( $user_id, $key, $$key ); 
     1357        if ( isset( $$key ) ) 
     1358            update_user_meta( $user_id, $key, $$key ); 
    13581359    } 
    13591360 
Note: See TracChangeset for help on using the changeset viewer.