Make WordPress Core

Ticket #11887: bmb_0007_t11887.patch

File bmb_0007_t11887.patch, 542 bytes (added by bumbu, 13 years ago)
  • wp-includes/media.php

     
    412412        $info = pathinfo($file);
    413413        $dir = $info['dirname'];
    414414        $ext = $info['extension'];
    415         $name = basename($file, ".{$ext}");
     415        $name = substr(basename(str_replace('/','/a',$file), ".{$ext}"),1);
    416416        if ( !is_null($dest_path) and $_dest_path = realpath($dest_path) )
    417417                $dir = $_dest_path;
    418418        $destfilename = "{$dir}/{$name}-{$suffix}.{$ext}";