Ticket #9393: 9393-wp_handle_upload.diff
File 9393-wp_handle_upload.diff, 721 bytes (added by , 16 years ago) |
---|
-
wp-admin/includes/file.php
282 282 283 283 if ( !$type ) 284 284 $type = $file['type']; 285 } else { 286 $type = ''; 285 287 } 286 288 287 289 // A writable uploads dir will pass this test. Again, there's no point overriding this one. … … 304 306 // Compute the URL 305 307 $url = $uploads['url'] . "/$filename"; 306 308 307 $return = apply_filters( 'wp_handle_upload', array( 'file' => $new_file, 'url' => $url, 'type' => $type ) ); 308 309 return $return; 309 return apply_filters( 'wp_handle_upload', array( 'file' => $new_file, 'url' => $url, 'type' => $type ) ); 310 310 } 311 311 312 312 /**