diff --git a/README.md b/README.md index 4b582336..98b5b271 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Ultimate Member is the #1 user profile & membership plugin for WordPress. The pl | Latest Version |Requires at least|Stable Tag| | :------------: |:------------:|:------------:| -| 2.0.19 | WordPress 4.9 or higher| 2.0.19 | +| 2.0.20 | WordPress 4.9 or higher| 2.0.20 | Features of the plugin include: @@ -48,7 +48,7 @@ GNU Version 2 or Any Later Version Releases ==================== -[Official Release Version: 2.0.19](https://github.com/ultimatemember/ultimatemember/releases/tag/2.0.19). +[Official Release Version: 2.0.20](https://github.com/ultimatemember/ultimatemember/releases/tag/2.0.20). [Official Release Version: 1.3.88](https://github.com/ultimatemember/ultimatemember/releases). diff --git a/includes/core/um-filters-members.php b/includes/core/um-filters-members.php index 40e99afe..1f2235f5 100644 --- a/includes/core/um-filters-members.php +++ b/includes/core/um-filters-members.php @@ -146,7 +146,14 @@ function um_add_search_to_query( $query_args, $args ){ 'relation' => 'OR', ); - if ( $filter_data['attrs']['type'] == 'multiselect' || $filter_data['attrs']['type'] == 'radio' || $filter_data['attrs']['type'] == 'checkbox' ) { + + $types = apply_filters( 'um_search_field_types', array( + 'multiselect', + 'radio', + 'checkbox' + ) ); + + if ( in_array( $filter_data['attrs']['type'], $types ) ) { $field_query = array_merge( $field_query, array( array( 'key' => $field, diff --git a/readme.txt b/readme.txt index 24cdf712..c3a12074 100644 --- a/readme.txt +++ b/readme.txt @@ -6,7 +6,7 @@ Donate link: Tags: community, member, membership, user-profile, user-registration Requires at least: 4.1 Tested up to: 4.9 -Stable tag: 2.0.19 +Stable tag: 2.0.20 License: GNU Version 2 or Any Later Version License URI: http://www.gnu.org/licenses/gpl-3.0.txt @@ -131,6 +131,11 @@ The plugin works with popular caching plugins by automatically excluding Ultimat = Important: UM2.0+ is a significant update to the code base from 1.3.88. Please make sure you take a full-site backup with restore point before updating the plugin = += 2.0.20: July 6, 2018 = + +* Bugfixes: + - Fixed search in members directory by User Tags field + = 2.0.19: July 5, 2018 = * Bugfixes: diff --git a/ultimate-member.php b/ultimate-member.php index 0cb9ba00..a906476f 100644 --- a/ultimate-member.php +++ b/ultimate-member.php @@ -3,7 +3,7 @@ Plugin Name: Ultimate Member Plugin URI: http://ultimatemember.com/ Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress -Version: 2.0.19 +Version: 2.0.20 Author: Ultimate Member Author URI: http://ultimatemember.com/ Text Domain: ultimate-member