Skip to content

Commit 83e476b

Browse files
committed
Fix simple liniting issues
1 parent 612f563 commit 83e476b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mu-plugins/osi-api/osi-api.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,9 @@ public function handle_redirects() {
401401

402402
if ( is_wp_error( $response ) ) {
403403
status_header( 404 );
404-
echo wp_json_encode( array( 'error' => $response->get_error_message() ) );
404+
echo wp_json_encode( array( 'error' => esc_html( $response->get_error_message() ) ) );
405405
} else {
406-
status_header( $response->get_status() );
406+
status_header( esc_html( $response->get_status() ) );
407407
echo wp_json_encode( $response->get_data() );
408408
}
409409
exit;
@@ -527,4 +527,4 @@ public function get_license_schema(): array {
527527
}
528528
}
529529

530-
add_action( 'init', array( OSI_API::class, 'init' ), 0 );
530+
add_action( 'init', array( OSI_API::class, 'init' ), 0 );

0 commit comments

Comments
 (0)