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
04cb2be3
Commit
04cb2be3
authored
Dec 08, 2015
by
Pierre Blarre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix filtering donations by project
parent
8cd3b3b2
Changes
1
Show 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 @
04cb2be3
...
...
@@ -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