Skip to content

Commit

Permalink
Fix PHPCS issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauteri committed Jan 27, 2024
1 parent 0250c1e commit b090ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/core/classes/class-rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ public function events_list( WP_REST_Request $request ): WP_REST_Response {
$params = $request->get_params();
$event_list_type = $params['event_list_type'];
$max_number = $this->max_number( (int) $params['max_number'], 5 );
$datetime_format = $params['datetime_format'] ?: 'D, M j, Y, g:i a T';
$datetime_format = ! empty( $params['datetime_format'] ) ? $params['datetime_format'] : 'D, M j, Y, g:i a T';
$posts = array();
$topics = array();
$venues = array();
Expand Down

0 comments on commit b090ce7

Please sign in to comment.