diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
index 8ae58299d6..a201b40d02 100644
a
|
b
|
function _device_can_upload() { |
5553 | 5553 | * @return bool True if the path is a stream URL. |
5554 | 5554 | */ |
5555 | 5555 | function wp_is_stream( $path ) { |
| 5556 | $path = wp_normalize_path( $path ); |
| 5557 | if ( false !== strpos( $path, 'file://' ) || false === strpos( $path, '://' ) ) { |
| 5558 | // can't possibly be a stream |
| 5559 | return false; |
| 5560 | } |
5556 | 5561 | $wrappers = stream_get_wrappers(); |
5557 | 5562 | $wrappers = array_map( 'preg_quote', $wrappers ); |
5558 | 5563 | $wrappers_re = '(' . join( '|', $wrappers ) . ')'; |