From 857a3d11acfa6783983b5b5c8b305a36f9db976d Mon Sep 17 00:00:00 2001 From: Sabbir Ahmed Date: Thu, 13 Dec 2018 02:08:28 +0600 Subject: [PATCH] fix: remove unwanted code --- includes/admin/class-ajax.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/admin/class-ajax.php b/includes/admin/class-ajax.php index ed829e8d5d..9529a44fa7 100644 --- a/includes/admin/class-ajax.php +++ b/includes/admin/class-ajax.php @@ -117,15 +117,13 @@ function handle_withdraw_action() { */ public function dismiss_christmas_offer() { if ( ! current_user_can( 'manage_options' ) ) { - wp_send_json_error( __( 'You have no permission to do that', 'dokan' ) ); + wp_send_json_error( __( 'You have no permission to do that', 'dokan-lite' ) ); } if ( ! wp_verify_nonce( $_POST['nonce'], 'dokan_admin' ) ) { - wp_send_json_error( __( 'Invalid nonce', 'dokan' ) ); + wp_send_json_error( __( 'Invalid nonce', 'dokan-lite' ) ); } - error_log( print_r( $_POST, true ) ); - if ( ! empty( $_POST['dokan_christmas_dismissed'] ) ) { $offer_key = 'dokan_christmas_notice'; update_option( $offer_key, 'hide' );