WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/10/2011 11:14:38 PM (10 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.