Ticket #18898: 18898.diff
| File 18898.diff, 442 bytes (added by ryan, 20 months ago) |
|---|
| Line | |
|---|---|
| 1 | Index: wp-includes/user.php |
| 2 | =================================================================== |
| 3 | --- wp-includes/user.php (revision 18934) |
| 4 | +++ wp-includes/user.php (working copy) |
| 5 | @@ -1354,7 +1354,8 @@ |
| 6 | $user = new WP_User( $user_id ); |
| 7 | |
| 8 | foreach ( _get_additional_user_keys( $user ) as $key ) { |
| 9 | - update_user_meta( $user_id, $key, $$key ); |
| 10 | + if ( isset( $$key ) ) |
| 11 | + update_user_meta( $user_id, $key, $$key ); |
| 12 | } |
| 13 | |
| 14 | if ( isset($role) ) |
