Merge pull request #1049 from ultimatemember/fix/filter_label

Filter label
This commit is contained in:
Nikita Sinelnikov
2022-08-09 15:13:43 +03:00
committed by GitHub
3 changed files with 12 additions and 3 deletions
+4 -1
View File
@@ -1,6 +1,9 @@
name: JobBoardWP GitHub Actions
on: push
on:
push:
branches:
- development/3.0
jobs:
build:
+7 -1
View File
@@ -684,7 +684,13 @@ if ( ! class_exists( 'um\core\Member_Directory' ) ) {
$attrs['options'] = apply_filters( 'um_member_directory_filter_select_options_sorted', $attrs['options'], $attrs );
$label = isset( $attrs['label'] ) ? $attrs['label'] : ''; ?>
$label = '';
if ( isset( $attrs['label'] ) ) {
$label = $attrs['label'];
} elseif ( ! isset( $attrs['label'] ) && isset( $attrs['title'] ) ) {
$label = $attrs['title'];
}
?>
<select class="um-s1" id="<?php echo esc_attr( $filter ); ?>" name="<?php echo esc_attr( $filter ); ?><?php if ( $admin && count( $attrs['options'] ) > 1 ) { ?>[]<?php } ?>"
data-placeholder="<?php esc_attr_e( stripslashes( $label ), 'ultimate-member' ); ?>"
+1 -1
View File
@@ -9,7 +9,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2022-07-14T15:29:05+00:00\n"
"POT-Creation-Date: 2022-07-15T10:03:21+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.6.0\n"
"X-Domain: ultimate-member\n"