Skip to content

Commit

Permalink
Use pending count for update bubble (#37)
Browse files Browse the repository at this point in the history
It better represents the amount of registrations that need attention.
  • Loading branch information
obenland authored Oct 26, 2024
1 parent b4b35f2 commit 17562c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class-obenland-wp-approve-user.php
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ public function admin_menu() {
foreach ( $menu as $key => $menu_item ) {
if ( array_search( 'users.php', $menu_item, true ) ) {
// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
$menu[ $key ][0] .= " <span class='update-plugins count-{$this->unapproved_count}'><span class='plugin-count'>{$this->unapproved_count}</span></span>";
$menu[ $key ][0] .= sprintf( ' <span class="update-plugins count-%1$s"><span class="plugin-count">%1$s</span></span>', $this->pending_count );

break; // Bail on success.
}
Expand Down

0 comments on commit 17562c7

Please sign in to comment.