Make WordPress Core


Ignore:
Timestamp:
04/20/2015 06:38:08 AM (11 years ago)
Author:
pento
Message:

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

File:
1 edited

Legend:

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

    r32116 r32171  
    20542054
    20552055    foreach ( $mimes as $ext_preg => $mime_match ) {
    2056         $ext_preg = '!\.(' . $ext_preg . ')(\?.*)?$!i';
     2056        $ext_preg = '!\.(' . $ext_preg . ')$!i';
    20572057        if ( preg_match( $ext_preg, $filename, $ext_matches ) ) {
    20582058            $type = $mime_match;
Note: See TracChangeset for help on using the changeset viewer.