Revert [30640], as it was incorrectly checking some filenames.

Built from https://develop.svn.wordpress.org/trunk@32171


git-svn-id: http://core.svn.wordpress.org/trunk@32146 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2015-04-20 06:39:25 +00:00
parent e2d3bdf615
commit 024e7bbd46
2 changed files with 2 additions and 2 deletions

View File

@ -2053,7 +2053,7 @@ function wp_check_filetype( $filename, $mimes = null ) {
$ext = false;
foreach ( $mimes as $ext_preg => $mime_match ) {
$ext_preg = '!\.(' . $ext_preg . ')(\?.*)?$!i';
$ext_preg = '!\.(' . $ext_preg . ')$!i';
if ( preg_match( $ext_preg, $filename, $ext_matches ) ) {
$type = $mime_match;
$ext = $ext_matches[1];

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-RC1-32170';
$wp_version = '4.2-RC1-32171';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.