From 2192fd78f910450dd5c5917557bddff92ebd8a66 Mon Sep 17 00:00:00 2001 From: jonfalcon Date: Sat, 27 Feb 2016 13:52:29 -0800 Subject: [PATCH 1/2] Add hook to mycred point log --- core/um-fields.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/um-fields.php b/core/um-fields.php index 82abf4b8..28e57be2 100644 --- a/core/um-fields.php +++ b/core/um-fields.php @@ -2176,7 +2176,7 @@ class UM_Fields { if ( isset( $this->set_mode ) ) { $output = apply_filters("um_{$key}_form_show_field", $output, $this->set_mode); $output = apply_filters("um_{$type}_form_show_field", $output, $this->set_mode); - + } return $output; From a618e6577f81ba4d5c61bb7807403f29d229f21c Mon Sep 17 00:00:00 2001 From: jonfalcon Date: Sat, 27 Feb 2016 14:42:34 -0800 Subject: [PATCH 2/2] Fix unsynced wp role --- core/um-actions-register.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/um-actions-register.php b/core/um-actions-register.php index 1df62940..6374e956 100644 --- a/core/um-actions-register.php +++ b/core/um-actions-register.php @@ -116,7 +116,7 @@ $role = um_get_option('default_role'); } - if ( !in_array( $role, $ultimatemember->query->get_roles( false, array('admin') ) ) ) { + if ( !array_key_exists( $role, $ultimatemember->query->get_roles( false, array('admin') ) ) ) { $role = um_get_option('default_role'); }