Remove unnecessary addslashes. Props duck_. fixes #15325
git-svn-id: http://svn.automattic.com/wordpress/trunk@16608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d2bce97ced
commit
096efd9957
|
@ -56,7 +56,7 @@ function wp_import_cleanup( $id ) {
|
||||||
*
|
*
|
||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array Uploaded file's details on success, error message on failure
|
||||||
*/
|
*/
|
||||||
function wp_import_handle_upload() {
|
function wp_import_handle_upload() {
|
||||||
if ( !isset($_FILES['import']) ) {
|
if ( !isset($_FILES['import']) ) {
|
||||||
|
@ -73,7 +73,7 @@ function wp_import_handle_upload() {
|
||||||
|
|
||||||
$url = $file['url'];
|
$url = $file['url'];
|
||||||
$type = $file['type'];
|
$type = $file['type'];
|
||||||
$file = addslashes( $file['file'] );
|
$file = $file['file'];
|
||||||
$filename = basename( $file );
|
$filename = basename( $file );
|
||||||
|
|
||||||
// Construct the object array
|
// Construct the object array
|
||||||
|
|
Loading…
Reference in New Issue