Typo fix from filosofo. fixes #7389 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8416 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ae96b8c628
commit
5c56c7fd2e
|
@ -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'];
|
||||
|
|
Loading…
Reference in New Issue