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

git-svn-id: https://develop.svn.wordpress.org/trunk@5089 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2007-03-23 02:05:29 +00:00
parent df22b0ccc9
commit d57901d29a
10 changed files with 25 additions and 25 deletions

View File

@@ -562,9 +562,9 @@ function edit_user( $user_id = 0 ) {
return $errors;
if ( $update ) {
$user_id = (int) wp_update_user( get_object_vars( $user ));
$user_id = wp_update_user( get_object_vars( $user ));
} else {
$user_id = (int) wp_insert_user( get_object_vars( $user ));
$user_id = wp_insert_user( get_object_vars( $user ));
wp_new_user_notification( $user_id );
}
return $user_id;
@@ -1969,7 +1969,7 @@ function wp_import_handle_upload() {
);
// Save the data
$id = (int) wp_insert_attachment( $object, $file );
$id = wp_insert_attachment( $object, $file );
return array( 'file' => $file, 'id' => $id );
}