mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Merge pull request #1049 from ultimatemember/fix/filter_label
Filter label
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
name: JobBoardWP GitHub Actions
|
||||
|
||||
on: push
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- development/3.0
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
@@ -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' ); ?>"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user