Ticket #11887: bmb_0007_t11887.patch
File bmb_0007_t11887.patch, 542 bytes (added by , 13 years ago) |
---|
-
wp-includes/media.php
412 412 $info = pathinfo($file); 413 413 $dir = $info['dirname']; 414 414 $ext = $info['extension']; 415 $name = basename($file, ".{$ext}");415 $name = substr(basename(str_replace('/','/a',$file), ".{$ext}"),1); 416 416 if ( !is_null($dest_path) and $_dest_path = realpath($dest_path) ) 417 417 $dir = $_dest_path; 418 418 $destfilename = "{$dir}/{$name}-{$suffix}.{$ext}";