From 228c30ffec2e75a906459be5ef2b7b98ecf888d0 Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Thu, 14 Sep 2017 18:35:45 -0700 Subject: [PATCH] Fix bug in a62feed that killed the "Empty Trash" feature --- includes/class-main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-main.php b/includes/class-main.php index 3f2c4ea..2705149 100644 --- a/includes/class-main.php +++ b/includes/class-main.php @@ -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 ); } -- GitLab