Skip to content

Commit

Permalink
Logged-in user should see sitewide header on secondary site, even whe…
Browse files Browse the repository at this point in the history
…n the logged-out toggle is unchecked.

See #3352.
  • Loading branch information
boonebgorges committed Apr 29, 2024
1 parent e9c57bc commit 29c18b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-content/mu-plugins/openlab-sitewide-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function openlab_sitewide_header_to_admin_and_group_sites() {
return;
}

if ( ! cboxol_show_admin_bar_for_anonymous_users( get_current_blog_id() ) ) {
if ( ! cboxol_show_admin_bar_for_anonymous_users( get_current_blog_id() ) && ! is_user_logged_in() ) {
return;
}

Expand Down

0 comments on commit 29c18b8

Please sign in to comment.