| @@ -165,9 +165,9 @@ | ||
| 165 | 165 | public function deactivate_this_plugin() { |
| 166 | 166 | |
| 167 | 167 | $body = $this->get_data(); |
| 168 | 168 | $body['status'] = 'Deactivated'; // Never translated |
| 169 | - $body['deactivated_date'] = gmdate( 'Y-m-d' ); | |
| 169 | + $body['deactivated_date'] = date('Y-m-d'); | |
| 170 | 170 | |
| 171 | 171 | // Add deactivation form data |
| 172 | 172 | if( false !== get_option( 'wpbot_deactivation_reason_' . $this->plugin_name ) ) { |
| 173 | 173 | $body['deactivation_reason'] = get_option( 'wpbot_deactivation_reason_' . $this->plugin_name ); |
| @@ -401,9 +401,9 @@ | ||
| 401 | 401 | public function qcld_goodbye_form_callback() { |
| 402 | 402 | check_ajax_referer( 'wpbot_goodbye_form', 'security' ); |
| 403 | 403 | |
| 404 | 404 | if( isset( $_POST['details'] ) ) { |
| 405 | - $details = sanitize_text_field(wp_unslash($_POST['details'])); | |
| 405 | + $details = sanitize_text_field( $_POST['details'] ); | |
| 406 | 406 | update_option( 'wpbot_deactivation_details_' . $this->plugin_name, $details ); |
| 407 | 407 | } |
| 408 | 408 | |
| 409 | 409 | echo 'success'; |