WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/20/2015 06:43:28 AM (4 years ago)
Author:
pento
Message:

Revert [30640], as it was incorrectly checking some filenames. This merges [32171] in the 4.1 branch.

See #30377.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1/src/wp-includes/functions.php

    r30674 r32172  
    20502050
    20512051    foreach ( $mimes as $ext_preg => $mime_match ) {
    2052         $ext_preg = '!\.(' . $ext_preg . ')(\?.*)?$!i';
     2052        $ext_preg = '!\.(' . $ext_preg . ')$!i';
    20532053        if ( preg_match( $ext_preg, $filename, $ext_matches ) ) {
    20542054            $type = $mime_match;
Note: See TracChangeset for help on using the changeset viewer.