Remove unnecessary addslashes. Props duck_. fixes #15325
git-svn-id: https://develop.svn.wordpress.org/trunk@16608 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d36b682a59
commit
b15476c5fd
@ -56,7 +56,7 @@ function wp_import_cleanup( $id ) {
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @return array
|
||||
* @return array Uploaded file's details on success, error message on failure
|
||||
*/
|
||||
function wp_import_handle_upload() {
|
||||
if ( !isset($_FILES['import']) ) {
|
||||
@ -73,7 +73,7 @@ function wp_import_handle_upload() {
|
||||
|
||||
$url = $file['url'];
|
||||
$type = $file['type'];
|
||||
$file = addslashes( $file['file'] );
|
||||
$file = $file['file'];
|
||||
$filename = basename( $file );
|
||||
|
||||
// Construct the object array
|
||||
|
Loading…
Reference in New Issue
Block a user