Make WordPress Core


Ignore:
Timestamp:
03/23/2007 02:05:29 AM (18 years ago)
Author:
matt
Message:

Ryan slays the dragon. (Some of these return WP_Error objects.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r5087 r5089  
    563563
    564564    if ( $update ) {
    565         $user_id = (int) wp_update_user( get_object_vars( $user ));
    566     } else {
    567         $user_id = (int) wp_insert_user( get_object_vars( $user ));
     565        $user_id = wp_update_user( get_object_vars( $user ));
     566    } else {
     567        $user_id = wp_insert_user( get_object_vars( $user ));
    568568        wp_new_user_notification( $user_id );
    569569    }
     
    19701970
    19711971    // Save the data
    1972     $id = (int) wp_insert_attachment( $object, $file );
     1972    $id = wp_insert_attachment( $object, $file );
    19731973
    19741974    return array( 'file' => $file, 'id' => $id );
Note: See TracChangeset for help on using the changeset viewer.