You appear to be a bot. Output may be restricted
Description
Validate the format and data of the update response.
Usage
$array = Genesis_Update_Check::validate_response( $response );
Parameters
- $response
- ( array ) required – The response to validate.
Returns
array Empty array if invalid, otherwise unaltered response.
Source
File name: genesis/lib/classes/class-genesis-update-check.php
Lines:
1 to 16 of 16
protected function validate_response( $response ) { if ( ! is_array( $response ) ) { return []; } foreach ( $this->req_data_keys as $req ) { if ( ! array_key_exists( $req, $response ) ) { return []; } } return $response; }