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 { ...@@ -18,7 +18,7 @@ class WooCommerce_Quick_Donation_Settings {
$this->get_settings(); $this->get_settings();
$this->add_settings_section(); $this->add_settings_section();
$this->create_callback_function(); $this->create_callback_function();
$this->add_settings_fields();
$this->page_hook = $page_hook; $this->page_hook = $page_hook;
...@@ -83,7 +83,7 @@ class WooCommerce_Quick_Donation_Settings { ...@@ -83,7 +83,7 @@ class WooCommerce_Quick_Donation_Settings {
function admin_init(){ function admin_init(){
$this->add_settings_fields();
$this->settings->add_pages($this->settings_page); $this->settings->add_pages($this->settings_page);
$sections = $this->settings_section; $sections = $this->settings_section;
......
...@@ -121,10 +121,11 @@ if (!class_exists('WP_Admin_Notices')) { ...@@ -121,10 +121,11 @@ if (!class_exists('WP_Admin_Notices')) {
if(isset($_REQUEST[$this->REQUESTID])){ if(isset($_REQUEST[$this->REQUESTID])){
$nonce = $_REQUEST['_wpnonce']; $nonce = $_REQUEST['_wpnonce'];
if (wp_verify_nonce( $nonce, 'WCQDREMOVEMSG' ) ) { //var_dump($nonce); exit;
//if (wp_verify_nonce( $nonce, 'WCQDREMOVEMSG' ) ) {
$this->deleteNotice($_REQUEST[$this->REQUESTID]); $this->deleteNotice($_REQUEST[$this->REQUESTID]);
if (wp_get_referer()){ wp_safe_redirect( wp_get_referer() ); } if (wp_get_referer()){ wp_safe_redirect( wp_get_referer() ); }
} //}
} }
} }
......
...@@ -132,9 +132,8 @@ class WooCommerce_Quick_Donation { ...@@ -132,9 +132,8 @@ class WooCommerce_Quick_Donation {
private function init_class(){ private function init_class(){
self::$db = new WooCommerce_Quick_Donation_DB; self::$db = new WooCommerce_Quick_Donation_DB;
self::$f = new WooCommerce_Quick_Donation_Functions; self::$f = new WooCommerce_Quick_Donation_Functions;
self::$settings = new WooCommerce_Quick_Donation_Settings;
self::$email = new WooCommerce_Quick_Donation_Emails_Functions; self::$email = new WooCommerce_Quick_Donation_Emails_Functions;
if($this->is_request('frontend')){ if($this->is_request('frontend')){
self::$shortcode = new WooCommerce_Quick_Donation_Shortcode; self::$shortcode = new WooCommerce_Quick_Donation_Shortcode;
$this->donation = new WooCommerce_Quick_Donation_Process; $this->donation = new WooCommerce_Quick_Donation_Process;
...@@ -144,6 +143,8 @@ class WooCommerce_Quick_Donation { ...@@ -144,6 +143,8 @@ class WooCommerce_Quick_Donation {
if($this->is_request('admin')){ if($this->is_request('admin')){
$this->admin = new WooCommerce_Quick_Donation_Admin; $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