From 11fc37bea60089abd2af89520e621ae88e376bba Mon Sep 17 00:00:00 2001 From: denisbaranov Date: Fri, 31 Aug 2018 16:43:22 +0300 Subject: [PATCH] BUG: New Support Request: Search with user tags --- includes/core/class-members.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/core/class-members.php b/includes/core/class-members.php index 3fd7a55b..380995d7 100644 --- a/includes/core/class-members.php +++ b/includes/core/class-members.php @@ -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'] ); + }*/ ?>