Changeset 56478
- Timestamp:
- 08/27/2023 12:21:33 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r56477 r56478 2432 2432 $meta = array_merge( $meta, $custom_meta ); 2433 2433 2434 // Update user meta. 2435 foreach ( $meta as $key => $value ) { 2436 update_user_meta( $user_id, $key, $value ); 2434 if ( $update ) { 2435 // Update user meta. 2436 foreach ( $meta as $key => $value ) { 2437 update_user_meta( $user_id, $key, $value ); 2438 } 2439 } else { 2440 // Add user meta. 2441 foreach ( $meta as $key => $value ) { 2442 add_user_meta( $user_id, $key, $value ); 2443 } 2437 2444 } 2438 2445
Note: See TracChangeset
for help on using the changeset viewer.