Skip to content
Snippets Groups Projects
Commit 228c30ff authored by Erick Hitter's avatar Erick Hitter
Browse files

Fix bug in a62feed5 that killed the "Empty Trash" feature

parent a62feed5
Branches
No related tags found
No related merge requests found
......@@ -66,8 +66,8 @@ class Main {
return;
}
// Nothing to do.
if ( empty( $vars->posts ) ) {
// Nothing to do, unless we're emptying the trash.
if ( empty( $vars->posts ) && 'delete_all' !== $vars->action ) {
self::do_admin_redirect( self::ADMIN_NOTICE_KEY, false );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment