From 1fd0cca18581cb55e2a6d56c842edc29a69129dc Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Thu, 10 Aug 2023 15:10:07 +0200 Subject: [PATCH] fix check! --- includes/class-http.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-http.php b/includes/class-http.php index e243997..35003b8 100644 --- a/includes/class-http.php +++ b/includes/class-http.php @@ -52,7 +52,7 @@ class Http { $response = \wp_safe_remote_post( $url, $args ); $code = \wp_remote_retrieve_response_code( $response ); - if ( 400 <= $code && 500 >= $code ) { + if ( $code <= 400 ) { $response = new WP_Error( $code, __( 'Failed HTTP Request', 'activitypub' ) ); } @@ -100,7 +100,7 @@ class Http { $response = \wp_safe_remote_get( $url, $args ); $code = \wp_remote_retrieve_response_code( $response ); - if ( 400 <= $code && 500 >= $code ) { + if ( $code <= 400 ) { $response = new WP_Error( $code, __( 'Failed HTTP Request', 'activitypub' ) ); }