diff --git a/README.md b/README.md index bd4bba41..e19f3c8e 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ GNU Version 2 or Any Later Version ## Releases -[Official Release Version: 2.1.14](https://github.com/ultimatemember/ultimatemember/releases/tag/2.1.14). +[Official Release Version: 2.1.15](https://github.com/ultimatemember/ultimatemember/releases/tag/2.1.15). ## Changelog diff --git a/assets/js/um-conditional.js b/assets/js/um-conditional.js index 8fbc2adb..ed74bb5e 100644 --- a/assets/js/um-conditional.js +++ b/assets/js/um-conditional.js @@ -591,7 +591,7 @@ function um_init_field_conditions() { arr_all_conditions.push(obj); }); - um_field_default_values[jQuery(this).data('key')] = um_get_field_default_value( jQuery(this) ); + um_field_default_values[ jQuery(this).data('key') ] = um_get_field_default_value( jQuery(this) ); }); jQuery.each( arr_field_keys, function ( i, field_key ) { diff --git a/includes/core/class-fields.php b/includes/core/class-fields.php index c9df9984..9a9970e0 100644 --- a/includes/core/class-fields.php +++ b/includes/core/class-fields.php @@ -4689,7 +4689,10 @@ if ( ! class_exists( 'um\core\Fields' ) ) { if ( in_array( $data['type'], $fields_without_metakey ) ) { unset( $field_atts['id'] ); - unset( $field_atts['data-key'] ); + + if ( empty( $field_atts['data-key'] ) ) { + unset( $field_atts['data-key'] ); + } } if ( ! empty( $field_style ) && is_array( $field_style ) ) { diff --git a/readme.txt b/readme.txt index 8949adb8..8aaef4ee 100644 --- a/readme.txt +++ b/readme.txt @@ -7,7 +7,7 @@ Tags: community, member, membership, user-profile, user-registration Requires PHP: 5.6 Requires at least: 5.0 Tested up to: 5.6 -Stable tag: 2.1.14 +Stable tag: 2.1.15 License: GNU Version 2 or Any Later Version License URI: http://www.gnu.org/licenses/gpl-3.0.txt @@ -155,6 +155,11 @@ The plugin works with popular caching plugins by automatically excluding Ultimat * To learn more about version 2.1 please see this [docs](https://docs.ultimatemember.com/article/1512-upgrade-2-1-0) * UM2.1+ is a significant update to the Member Directories' code base from 2.0.x. Please make sure you take a full-site backup with restore point before updating the plugin += 2.1.15: December 24, 2020 = + +* Bugfixes: + - Fixed conditional logic for the form fields without metakeys + = 2.1.14: December 22, 2020 = * Enhancements: diff --git a/ultimate-member.php b/ultimate-member.php index ca468002..533aa41c 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.1.15-alpha1 +Version: 2.1.15 Author: Ultimate Member Author URI: http://ultimatemember.com/ Text Domain: ultimate-member