From 71b29f34db07ad3065d09c50e3b1d7cc415a84e4 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Fri, 16 Jun 2017 23:21:07 +0800 Subject: [PATCH] Fix extra slashes in form edit fields when invalid input fields occur --- 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 8252f6ef..9f3bbc59 100644 --- a/core/um-fields.php +++ b/core/um-fields.php @@ -439,7 +439,7 @@ class UM_Fields { if ( strstr( $key, 'user_pass' ) && $this->set_mode != 'password' ) return ''; - return $ultimatemember->form->post_form[ $key ]; + return stripslashes_deep( $ultimatemember->form->post_form[ $key ] ); } else if ( um_user( $key ) && $this->editing == true ) {