Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
woocommerce-quick-donation
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wordpress
woocommerce-quick-donation
Commits
2bd6d33c
Commit
2bd6d33c
authored
Nov 06, 2015
by
Varun Sridharan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Issue With PAYU Gateway
parent
10bb72f2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
settings.php
includes/admin/wps/settings.php
+2
-2
class-admin-notice.php
includes/class-admin-notice.php
+3
-2
woocommerce-quick-donation.php
woocommerce-quick-donation.php
+3
-2
No files found.
includes/admin/wps/settings.php
View file @
2bd6d33c
...
@@ -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
;
...
...
includes/class-admin-notice.php
View file @
2bd6d33c
...
@@ -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
()
);
}
}
//
}
}
}
}
}
...
...
woocommerce-quick-donation.php
View file @
2bd6d33c
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment