mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 10:14:31 +00:00
Dots fix to work around mod_mime problem. Props skeltoac.
git-svn-id: https://develop.svn.wordpress.org/trunk@3822 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1877,6 +1877,7 @@ function wp_handle_upload(&$file, $overrides = false) {
|
||||
else
|
||||
$filename = str_replace("$number$ext", ++$number . $ext, $filename);
|
||||
}
|
||||
$filename = preg_replace('#\.(?![^.]+$)#', '-', $filename);
|
||||
}
|
||||
|
||||
// Move the file to the uploads dir
|
||||
|
||||
Reference in New Issue
Block a user