From fa97410528d4edfb0aebb5667ca94b844f09cfb8 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Wed, 18 Apr 2018 22:22:49 +0800 Subject: [PATCH] Fix account deletion custom text --- includes/core/um-actions-account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/core/um-actions-account.php b/includes/core/um-actions-account.php index b936891b..7470f2bf 100644 --- a/includes/core/um-actions-account.php +++ b/includes/core/um-actions-account.php @@ -376,7 +376,7 @@ add_action( 'um_account_page_hidden_fields', 'um_account_page_hidden_fields' ); * Before delete account tab content */ function um_before_account_delete() { - echo wpautop( UM()->options()->get( 'delete_account_text' ) ); + echo wpautop( htmlspecialchars( UM()->options()->get( 'delete_account_text' ) ) ); } add_action( 'um_before_account_delete', 'um_before_account_delete' );