From 3b39f5f1d1134b266e68ac966744a584d464279b Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Mon, 9 Sep 2024 16:35:41 -0400 Subject: [PATCH] Admin bar: Show the admin bar across all sites when logged in This shows the admin bar on all sites on WordPress.org once a user is logged in, regardless of permissions on the current site. See #647 --- mu-plugins/blocks/global-header-footer/admin-bar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mu-plugins/blocks/global-header-footer/admin-bar.php b/mu-plugins/blocks/global-header-footer/admin-bar.php index 56f59744e..a3879db29 100644 --- a/mu-plugins/blocks/global-header-footer/admin-bar.php +++ b/mu-plugins/blocks/global-header-footer/admin-bar.php @@ -19,7 +19,7 @@ * @return bool */ function should_show_admin_bar( $show_admin_bar ) { - return is_super_admin() || current_user_can( 'read' ); + return is_super_admin() || is_user_logged_in(); } /**