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

git-svn-id: http://svn.automattic.com/wordpress/trunk@5089 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt
2007-03-23 02:05:29 +00:00
parent 4cfeed615c
commit 3d21925922
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 );
}