WordPress / wporg-main-2022

A block-based child theme for WordPress.org, plus local environment
72 stars 26 forks source link

HTML entities aren't correctly echo'ed in download counter #308

Closed tobifjellner closed 1 year ago

tobifjellner commented 1 year ago

Describe the bug Some locales' format large numbers differently than US English.

When you load a localized "counter" page, the number is correctly formatted. But as soon as the counter gets updated via a Javascript, it's back to American number format.

See https://meta.trac.wordpress.org/ticket/7195 for more details.

Reported by https://profiles.wordpress.org/raikas/

ryelle commented 1 year ago

I'm not seeing it revert to American format, I see the   characters encoded.

On this page: https://sv.wordpress.org/download/counter/

Initial load is correct, but updates look like this:

a0UBOuk (screenshot from the linked ticket)