Skip to content

Commit

Permalink
Clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dilirity committed Dec 20, 2024
1 parent 2d65c5a commit d22ffed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions projects/packages/boost-core/src/lib/class-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ public static function send_wpcom_request( $method, $endpoint, $args = null, $bo
);

/*
* WordPress.com passes statusCode and error back from Boost Cloud.
* WordPress.com ISA returns code and message.
* Normalize error responses from WordPress.com.
*
* When WordPress.com returns an error from Boost Cloud, the body contains
* statusCode and error. When it returns a WP_Error, it contains code and message.
*/
// phpcs:disable WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
if ( isset( $data['statusCode'] ) && isset( $data['error'] ) ) {
Expand Down

0 comments on commit d22ffed

Please sign in to comment.