Ticket #49872: 49872.patch
File 49872.patch, 616 bytes (added by , 4 years ago) |
---|
-
src/wp-includes/functions.php
902 902 903 903 // Check to see if we can figure out the mime type from the extension. 904 904 $url_parts = @parse_url( $url ); 905 if ( false !== $url_parts ) {905 if ( false !== $url_parts && ! empty( $url_parts['path'] ) ) { 906 906 $extension = pathinfo( $url_parts['path'], PATHINFO_EXTENSION ); 907 907 if ( ! empty( $extension ) ) { 908 908 foreach ( wp_get_mime_types() as $exts => $mime ) {