From 92bc4ba3e200e063a45151c2ac3e1b997c2f3b27 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Wed, 14 Sep 2016 21:09:40 +0800 Subject: [PATCH] Fix users queue count after user deletion --- admin/core/um-admin-dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/core/um-admin-dashboard.php b/admin/core/um-admin-dashboard.php index c9e80d46..4f1a80be 100644 --- a/admin/core/um-admin-dashboard.php +++ b/admin/core/um-admin-dashboard.php @@ -68,7 +68,7 @@ class UM_Admin_Dashboard { */ function get_pending_users_count() { - if ( get_option('um_cached_users_queue') > 0 ) { + if ( get_option('um_cached_users_queue') > 0 && ! isset( $_REQUEST['delete_count'] ) ) { return get_option('um_cached_users_queue'); }