Skip to content

Commit

Permalink
remove undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
pyronaur committed Jul 9, 2024
1 parent 7bf8e67 commit 4633657
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static function handle_proxy() {

$photon_url = Image_CDN_Core::cdn_url( $proxy_url );
$photon_url_domain = wp_parse_url( $photon_url, PHP_URL_HOST );
$photon_domain = wp_parse_url( apply_filters( 'jetpack_photon_domain', 'https://i0.wp.com', $image_url ), PHP_URL_HOST );
$photon_domain = wp_parse_url( apply_filters( 'jetpack_photon_domain', 'https://i0.wp.com' ), PHP_URL_HOST );
if ( $photon_url_domain !== $photon_domain ) {
wp_send_json_error( 'Failed to proxy the image.', 400 );
return;

Check failure on line 44 in projects/plugins/boost/app/modules/image-guide/Image_Guide_Proxy.php

View workflow job for this annotation

GitHub Actions / Static analysis

TypeError PhanTypeMismatchReturnProbablyReal Returning void of type void but handle_proxy() is declared to return never (no real type) (the inferred real return type has nothing in common with the declared phpdoc return type)
Expand Down

0 comments on commit 4633657

Please sign in to comment.