diff --git a/php/class-media.php b/php/class-media.php index 8b77c5f1..d034e210 100644 --- a/php/class-media.php +++ b/php/class-media.php @@ -1981,7 +1981,7 @@ public function is_cloudinary_url( $url ) { $test_parts = wp_parse_url( $url ); $cld_url = wp_parse_url( $this->base_url, PHP_URL_HOST ); - return isset( $test_parts['path'] ) && false !== strpos( $test_parts['host'], $cld_url ); + return isset( $test_parts['path'], $test_parts['host'] ) && false !== strpos( $test_parts['host'], $cld_url ); } /**