From c842da24ab03f49b8a4da7b6cc46183462453bdf Mon Sep 17 00:00:00 2001 From: Rajat Patel Date: Sat, 30 Nov 2024 13:06:49 +0530 Subject: [PATCH 1/2] changed test in feedback form --- includes/class-iee-plugin-deactivation.php | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/includes/class-iee-plugin-deactivation.php b/includes/class-iee-plugin-deactivation.php index b7f3efb..c68ab5e 100644 --- a/includes/class-iee-plugin-deactivation.php +++ b/includes/class-iee-plugin-deactivation.php @@ -93,10 +93,7 @@ function submit_plugin_deactivation_feedback(){ $client_id = $credentials->client_id; $client_secret = $credentials->client_secret; $customer_email = $user->user_email; - $customer_name = $user->display_name; - if(empty($customer_name)){ - $customer_name = $user->user_firstname. ' '.$user->user_lastname; - } + $customer_name = $user->user_firstname. ' '.$user->user_lastname; $deactivation_reason = isset( $_REQUEST['reason'] ) ? sanitize_text_field( wp_unslash ( $_REQUEST['reason'] ) ): ''; $deactivation_reason_message = $this->get_deactivation_reasons()[$deactivation_reason]; $customer_query = isset( $_REQUEST['customerQuery'] ) ? sanitize_text_field( wp_unslash ( $_REQUEST['customerQuery'] ) ): ''; @@ -194,7 +191,7 @@ class: 'button button-primary prefix ) . "deactivate } }, { - text: "", + text: "", class: 'button', click: function() { jQuery( this ).dialog( "close" ); @@ -255,7 +252,13 @@ class: 'button', }
-

+
+
+

+
+
+
+

+
+

+ +

+