if ( $this->
coordinates_match( $request_args['body'
],
$response_body['location'
] ) &&
empty( $response_body['location'
]['description'
] ) ) { $response_body['location'
]['description'
] =
$this->user_location
['description'
];
} /*
* Store the raw response, because events will expire before the cache does.
* The response will need to be processed every page load.
*/
$this->
cache_events( $response_body,
$expiration );
$response_body['events'
] =
$this->
trim_events( $response_body['events'
] );
return $response_body;
} } /**
* Builds an array of args to use in an HTTP request to the w.org Events API.
*
* @since 4.8.0
*
* @param string $search Optional. City search string. Default empty string.
* @param string $timezone Optional. Timezone string. Default empty string.
* @return array The request args.
*/