Skip to content

Commit

Permalink
Need to set proper text for multiple-selection in filter #1656
Browse files Browse the repository at this point in the history
  • Loading branch information
ritakikani committed Apr 10, 2024
1 parent aa27355 commit 851a486
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wp-event-manager-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ function event_manager_dropdown_selection($args = '') {
'exclude' => $query['exclude'],
'hierarchical' => $query['hierarchical']
));

set_transient($categories_hash, $categories, DAY_IN_SECONDS * 30);
}

Expand All @@ -1072,7 +1072,7 @@ function event_manager_dropdown_selection($args = '') {
$multiple_text = __('Choose event types', 'wp-event-manager');
endif;

$output = "<select name='" . esc_attr($name) . "[]' id='" . esc_attr($id) . "' class='" . esc_attr($class) . "' " . ($multiple ? "multiple='multiple'" : '') . " data-placeholder='" . esc_attr($placeholder) . "' data-no_results_text='" . esc_attr($no_results_text) . "' data-multiple_text='" . esc_attr($placeholder) . "'>\n";
$output = "<select name='" . esc_attr($name) . "[]' id='" . esc_attr($id) . "' class='" . esc_attr($class) . "' " . ($multiple ? "multiple='multiple'" : '') . " data-placeholder='" . esc_attr($placeholder) . "' data-no_results_text='" . esc_attr($no_results_text) . "' data-multiple_text='" . esc_attr($multiple_text) . "'>\n";

if($show_option_all) {
$output .= '<option value="">' . $show_option_all . '</option>';
Expand Down

0 comments on commit 851a486

Please sign in to comment.