Skip to content

Commit

Permalink
Updating admin bar instead of removing and adding
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuesken committed Jun 10, 2024
1 parent bf2326f commit 9063da7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/class-admin-bar-tweaks.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public function enhance_network_blog_admin_bar( \WP_Admin_Bar $wp_admin_bar ) {

if ( current_user_can( 'edit_posts' ) ) {
$comment_node = $wp_admin_bar->get_node( $menu_id );
if ( ! $comment_node ) {
continue;
}

$awaiting_mod = wp_count_comments();
$awaiting_mod = $awaiting_mod->moderated;
Expand Down

0 comments on commit 9063da7

Please sign in to comment.