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
be2cf371
Commit
be2cf371
authored
Dec 18, 2015
by
Varun Sridharan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #68 from Negative-Network/pull_requests
Fix filtering donations by project
parents
8cd3b3b2
04cb2be3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
wp-donation-listing-table.php
includes/admin/wp-donation-listing-table.php
+8
-1
No files found.
includes/admin/wp-donation-listing-table.php
View file @
be2cf371
...
...
@@ -124,9 +124,9 @@ class WC_Quick_Donation_Listing_Table extends WP_List_Table {
}
$doaction
=
$this
->
current_action
();
$sendback
=
remove_query_arg
(
array
(
'trashed'
,
'untrashed'
,
'deleted'
,
'locked'
,
'ids'
,
'dproj'
),
wp_get_referer
()
);
if
(
$doaction
){
$pagenum
=
$this
->
get_pagenum
();
$sendback
=
remove_query_arg
(
array
(
'trashed'
,
'untrashed'
,
'deleted'
,
'locked'
,
'ids'
),
wp_get_referer
()
);
if
(
!
$sendback
)
$sendback
=
admin_url
(
$parent_file
);
$sendback
=
add_query_arg
(
'paged'
,
$pagenum
,
$sendback
);
...
...
@@ -246,6 +246,10 @@ class WC_Quick_Donation_Listing_Table extends WP_List_Table {
}
}
break
;
case
'dproj'
:
$sendback
=
add_query_arg
(
array
(
'dproj'
=>
$_REQUEST
[
'dproj'
]),
$sendback
);
break
;
}
}
...
...
@@ -540,6 +544,9 @@ class WC_Quick_Donation_Listing_Table extends WP_List_Table {
if
(
isset
(
$_REQUEST
[
'delete_all'
]
)
||
isset
(
$_REQUEST
[
'delete_all2'
]
)
)
return
'delete_all'
;
if
(
isset
(
$_REQUEST
[
'dproj'
]
)
and
$_REQUEST
[
'dproj'
]
!=
''
)
return
'dproj'
;
return
parent
::
current_action
();
}
...
...
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