Skip to content

Commit 506feb9

Browse files
authored
Merge pull request #1148 from cloudinary/remove-php-warning
Fix PHP warning on is_cloudinary_url method
2 parents c71b548 + f8011f1 commit 506feb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/class-media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1981,7 +1981,7 @@ public function is_cloudinary_url( $url ) {
19811981
$test_parts = wp_parse_url( $url );
19821982
$cld_url = wp_parse_url( $this->base_url, PHP_URL_HOST );
19831983

1984-
return isset( $test_parts['path'] ) && false !== strpos( $test_parts['host'], $cld_url );
1984+
return isset( $test_parts['path'], $test_parts['host'] ) && false !== strpos( $test_parts['host'], $cld_url );
19851985
}
19861986

19871987
/**

0 commit comments

Comments
 (0)