Skip to content

Commit ed2b611

Browse files
dd32claude
andcommitted
Add All option to Format dropdown on events page
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a6db6e9 commit ed2b611

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

public_html/wp-content/themes/wporg-events-2023/inc/events-query.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,11 @@ function get_format_type_options( array $options ): array {
462462
'key' => 'format_type',
463463
'action' => build_form_action_url(),
464464
'options' => array(
465+
'' => 'All',
465466
'online' => 'Online',
466467
'in-person' => 'In Person',
467468
),
468-
'selected' => $selected,
469+
'selected' => $count > 0 ? $selected : array( '' ),
469470
);
470471
}
471472

0 commit comments

Comments
 (0)