Typo fix from filosofo. fixes #7389 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@8416 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-07-23 18:35:38 +00:00
parent 28ae8ab3dc
commit 5580e543f6

View File

@ -102,7 +102,7 @@ function media_handle_upload($file_id, $post_id, $post_data = array()) {
$file = wp_handle_upload($_FILES[$file_id], $overrides);
if ( isset($file['error']) )
return new wp_error( 'upload_error', $file['error'] );
return new WP_Error( 'upload_error', $file['error'] );
$url = $file['url'];
$type = $file['type'];
@ -142,7 +142,7 @@ function media_handle_sideload($file_array, $post_id, $desc = null, $post_data =
$file = wp_handle_sideload($file_array, $overrides);
if ( isset($file['error']) )
return new wp_error( 'upload_error', $file['error'] );
return new WP_Error( 'upload_error', $file['error'] );
$url = $file['url'];
$type = $file['type'];