Skip to content

Commit

Permalink
Boost: Fix menu counter not showing correctly (#40127)
Browse files Browse the repository at this point in the history
  • Loading branch information
dilirity authored Nov 12, 2024
1 parent b0f7384 commit c5552d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion projects/plugins/boost/app/admin/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function handle_admin_menu() {
$total_problems = apply_filters( 'jetpack_boost_total_problem_count', 0 );
$menu_label = _x( 'Boost', 'The Jetpack Boost product name, without the Jetpack prefix', 'jetpack-boost' );
if ( $total_problems ) {
$menu_label .= sprintf( ' <span class="update-plugins">%d</span>', $total_problems );
$menu_label .= sprintf( ' <span class="menu-counter count-%d"><span class="count">%d</span></span>', $total_problems, $total_problems );
}

$page_suffix = Admin_Menu::add_menu(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

UI: Fix Boost's menu counter sometimes displaying incorrectly.

0 comments on commit c5552d1

Please sign in to comment.