diff --git a/includes/emails/wpum-email-functions.php b/includes/emails/wpum-email-functions.php index 1ef664e2..e9c92fbe 100644 --- a/includes/emails/wpum-email-functions.php +++ b/includes/emails/wpum-email-functions.php @@ -153,7 +153,7 @@ function wpum_email_tag_login_page_url( $user_id = false ) { * @return string */ function wpum_email_tag_password( $user_id = false, $password_reset_key = false, $plain_text_password = '' ) { - return sanitize_text_field( $plain_text_password ); + return $plain_text_password; } /** diff --git a/includes/fields/types/class-wpum-field-password.php b/includes/fields/types/class-wpum-field-password.php index 72a9d628..981625ab 100644 --- a/includes/fields/types/class-wpum-field-password.php +++ b/includes/fields/types/class-wpum-field-password.php @@ -53,4 +53,14 @@ public function get_editor_settings() { ); } + /** + * Gets the value of a posted field. + * + * @param string $key + * @param array $field + * @return string|array + */ + public function get_posted_field( $key, $field ) { + return filter_input( INPUT_POST, $key ); + } }