diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 9cdeef75788f2..c7009f4ddd174 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -7371,6 +7371,11 @@ function _device_can_upload() { * @return bool True if the path is a stream URL. */ function wp_is_stream( $path ) { + + if ( empty( $path ) && ! is_string( $path ) ) { + return false; + } + $scheme_separator = strpos( $path, '://' ); if ( false === $scheme_separator ) {