From dcc2e595f21b4f154c83a901e685ff90fc27558c Mon Sep 17 00:00:00 2001 From: Shiva Poudel Date: Mon, 18 Jun 2018 16:52:56 +0545 Subject: [PATCH] Tweak - logged in user is also checked by is_admin_bar_showing --- includes/admin/class-wc-admin-menus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/class-wc-admin-menus.php b/includes/admin/class-wc-admin-menus.php index 62f8674ad0d..0648082afde 100644 --- a/includes/admin/class-wc-admin-menus.php +++ b/includes/admin/class-wc-admin-menus.php @@ -340,7 +340,7 @@ class WC_Admin_Menus { * @param WP_Admin_Bar $wp_admin_bar Admin bar instance. */ public function admin_bar_menus( $wp_admin_bar ) { - if ( ! is_admin() || ! is_user_logged_in() ) { + if ( ! is_admin() || ! is_admin_bar_showing() ) { return; }