Changeset 48621
- Timestamp:
- 07/26/2020 02:06:03 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r48607 r48621 908 908 // Check to see if we can figure out the mime type from the extension. 909 909 $url_parts = parse_url( $url ); 910 if ( false !== $url_parts ) {910 if ( false !== $url_parts && ! empty( $url_parts['path'] ) ) { 911 911 $extension = pathinfo( $url_parts['path'], PATHINFO_EXTENSION ); 912 912 if ( ! empty( $extension ) ) { -
trunk/tests/phpunit/tests/functions/doEnclose.php
r46644 r48621 136 136 "https://example.com/wp-content/uploads/2018/06/movie.mp4\n123\nvideo/mp4\n", 137 137 ), 138 'no-path' => array( 139 'content' => 'https://example.com?test=1', 140 'expected' => '', 141 ), 138 142 ); 139 143 }
Note: See TracChangeset
for help on using the changeset viewer.