We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf2326f commit 9063da7Copy full SHA for 9063da7
src/class-admin-bar-tweaks.php
@@ -43,6 +43,9 @@ public function enhance_network_blog_admin_bar( \WP_Admin_Bar $wp_admin_bar ) {
43
44
if ( current_user_can( 'edit_posts' ) ) {
45
$comment_node = $wp_admin_bar->get_node( $menu_id );
46
+ if ( ! $comment_node ) {
47
+ continue;
48
+ }
49
50
$awaiting_mod = wp_count_comments();
51
$awaiting_mod = $awaiting_mod->moderated;
0 commit comments