Commit 2bd6d33c authored by Varun Sridharan's avatar Varun Sridharan

Fixed Issue With PAYU Gateway

parent 10bb72f2
......@@ -18,7 +18,7 @@ class WooCommerce_Quick_Donation_Settings {
$this->get_settings();
$this->add_settings_section();
$this->create_callback_function();
$this->add_settings_fields();
$this->page_hook = $page_hook;
......@@ -83,7 +83,7 @@ class WooCommerce_Quick_Donation_Settings {
function admin_init(){
$this->add_settings_fields();
$this->settings->add_pages($this->settings_page);
$sections = $this->settings_section;
......
......@@ -121,10 +121,11 @@ if (!class_exists('WP_Admin_Notices')) {
if(isset($_REQUEST[$this->REQUESTID])){
$nonce = $_REQUEST['_wpnonce'];
if (wp_verify_nonce( $nonce, 'WCQDREMOVEMSG' ) ) {
//var_dump($nonce); exit;
//if (wp_verify_nonce( $nonce, 'WCQDREMOVEMSG' ) ) {
$this->deleteNotice($_REQUEST[$this->REQUESTID]);
if (wp_get_referer()){ wp_safe_redirect( wp_get_referer() ); }
}
//}
}
}
......
......@@ -132,7 +132,6 @@ class WooCommerce_Quick_Donation {
private function init_class(){
self::$db = new WooCommerce_Quick_Donation_DB;
self::$f = new WooCommerce_Quick_Donation_Functions;
self::$settings = new WooCommerce_Quick_Donation_Settings;
self::$email = new WooCommerce_Quick_Donation_Emails_Functions;
if($this->is_request('frontend')){
......@@ -145,6 +144,8 @@ class WooCommerce_Quick_Donation {
$this->admin = new WooCommerce_Quick_Donation_Admin;
}
self::$settings = new WooCommerce_Quick_Donation_Settings;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment