Skip to content

Commit f8011f1

Browse files
Fix PHP warning on cloudinary_url
1 parent 9e4dae0 commit f8011f1

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)