BUG: New Support Request: Search with user tags

This commit is contained in:
denisbaranov
2018-08-31 16:43:22 +03:00
parent b2748d586c
commit 11fc37bea6
+6 -1
View File
@@ -198,6 +198,9 @@ if ( ! class_exists( 'um\core\Members' ) ) {
$attrs = apply_filters( 'um_search_fields', $attrs );
if ( $type == 'select' ) {
if( isset($attrs) && is_array( $attrs['options'] ) ){
asort( $attrs['options'] );
}
/**
* UM hook
*
@@ -240,7 +243,9 @@ if ( ! class_exists( 'um\core\Members' ) ) {
switch ( $type ) {
case 'select':
/*if( isset($attrs) && is_array( $attrs['options'] ) ){
asort( $attrs['options'] );
}*/
?>
<select name="<?php echo $filter; ?>" id="<?php echo $filter; ?>" class="um-s1" style="width: 100%" data-placeholder="<?php echo __( stripslashes( $attrs['label'] ), 'ultimate-member' ); ?>" <?php if ( ! empty( $attrs['custom_dropdown_options_source'] ) ) { ?> data-um-parent="<?php echo $attrs['parent_dropdown_relationship']; ?>" data-mebers-directory="yes" data-um-ajax-source="<?php echo $attrs['custom_dropdown_options_source'] ?>"<?php } ?>>