From 024e7bbd46a11d6cd04d3ddf3c2b1eba6d20ec69 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Mon, 20 Apr 2015 06:39:25 +0000 Subject: [PATCH] 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 --- wp-includes/functions.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 9a0ee8880a..929c4e218a 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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]; diff --git a/wp-includes/version.php b/wp-includes/version.php index 29ba526f61..d5f9b9e855 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.