Make WordPress Core

Ticket #30377: 30377.2.diff

File 30377.2.diff, 462 bytes (added by layotte, 10 years ago)
  • wp-includes/functions.php

    diff --git wp-includes/functions.php wp-includes/functions.php
    index d13a5b1..a19a567 100644
    function wp_ext2type( $ext ) { 
    20482048 * @return array Values with extension first and mime type.
    20492049 */
    20502050function wp_check_filetype( $filename, $mimes = null ) {
     2051        $filename = parse_url( $filename, PHP_URL_PATH );
     2052
    20512053        if ( empty($mimes) )
    20522054                $mimes = get_allowed_mime_types();
    20532055        $type = false;