Skip to content

Commit

Permalink
At A Glance messaging: ensure numbers are correctly displayed (#458)
Browse files Browse the repository at this point in the history
Since the number of posts by friends can become quite high, it's important that such a high number be properly displayed for each locale.
  • Loading branch information
jeherve authored Feb 6, 2025
1 parent 2494bc9 commit 26da579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3444,7 +3444,7 @@ public function dashboard_glance_items( $items ) {

if ( $friend_post_count ) {
// translators: %s is the number of friend posts.
$items[] = '<a class="friend-posts" href="' . home_url( '/friends/' ) . '">' . sprintf( _n( '%s Post by Friends', '%s Posts by Friends', $friend_post_count, 'friends' ), $friend_post_count ) . '</a>';
$items[] = '<a class="friend-posts" href="' . home_url( '/friends/' ) . '">' . sprintf( _n( '%s Post by Friends', '%s Posts by Friends', $friend_post_count, 'friends' ), number_format_i18n( $friend_post_count ) ) . '</a>';
}
return $items;
}
Expand Down

0 comments on commit 26da579

Please sign in to comment.