Skip to content

Commit

Permalink
Admin bar: Show the admin bar across all sites when logged in
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ryelle committed Sep 9, 2024
1 parent 7da84bc commit 3b39f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mu-plugins/blocks/global-header-footer/admin-bar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit 3b39f5f

Please sign in to comment.