Skip to content

Commit

Permalink
Remove admin bar condition in admin bar cb
Browse files Browse the repository at this point in the history
Co-authored-by: Weston Ruter <westonruter@google.com>
  • Loading branch information
swissspidy and westonruter authored Jan 13, 2025
1 parent 6d95ce1 commit 5de84c6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugins/optimization-detective/debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ function od_debug_add_admin_bar_menu_item( WP_Admin_Bar &$wp_admin_bar ): void {
return;

Check warning on line 88 in plugins/optimization-detective/debug.php

View check run for this annotation

Codecov / codecov/patch

plugins/optimization-detective/debug.php#L87-L88

Added lines #L87 - L88 were not covered by tests
}

if ( ! is_admin_bar_showing() ) {
return;
}

if ( is_admin() ) {
return;

Check warning on line 92 in plugins/optimization-detective/debug.php

View check run for this annotation

Codecov / codecov/patch

plugins/optimization-detective/debug.php#L91-L92

Added lines #L91 - L92 were not covered by tests
}
Expand Down

0 comments on commit 5de84c6

Please sign in to comment.