Skip to content

v2.8.5 - Cap large numbers in dashboard widget

Choose a tag to compare

@hummelmose hummelmose released this 01 Sep 19:20
· 1 commit to main since this release

WP VisitChart v2.8.5

Fix: dashboard widget now uses the same +100K number formatting as the main dashboard and mobile page.


The WordPress dashboard widget Top 20 i dag was still showing full numbers with thousand separators (e.g. 257.223) in the Total column, while the main admin dashboard and mobile page already used the capped +100K style format introduced in v2.8.3.

Added lstats_format_capped_number() as a PHP counterpart to the existing JavaScript formatCappedNumber() helper, since the dashboard widget renders entirely server-side. Numbers over 99,999 now display as +257K instead of 257.223, consistent across all three views.


Upgrade

Download wp-visitchart.zip below and replace the existing plugin files. No database changes required.