From f8011f14ea2805ec160f2b4790494fbf3c469363 Mon Sep 17 00:00:00 2001 From: Gabriel de Tassigny Date: Thu, 12 Feb 2026 13:04:01 +0100 Subject: [PATCH] Fix PHP warning on cloudinary_url --- php/class-media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } /**