WordPress.org

Make WordPress Core

Ticket #21439: 21439.patch

File 21439.patch, 575 bytes (added by SergeyBiryukov, 3 years ago)
  • wp-includes/user.php

     
    13911391 * @uses wp_insert_user() Used to update existing user or add new one if user doesn't exist already 
    13921392 * 
    13931393 * @param array $userdata An array of user data. 
    1394  * @return int The updated user's ID. 
     1394 * @return int|WP_Error The updated user's ID or a WP_Error object if the user could not be updated. 
    13951395 */ 
    13961396function wp_update_user($userdata) { 
    13971397        $ID = (int) $userdata['ID'];