[wp-trac] [WordPress Trac] #64383: wp-includes/js/dist/i18n.js sprintf function break on empty string
WordPress Trac
noreply at wordpress.org
Tue Dec 9 09:40:16 UTC 2025
#64383: wp-includes/js/dist/i18n.js sprintf function break on empty string
--------------------------+-----------------------------
Reporter: joepenzo | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: 6.9
Severity: normal | Keywords: needs-patch
Focuses: |
--------------------------+-----------------------------
Older WooCommerce admin analytics pages generat empty strings, which
breaks in the i18n sprintf() method.
This happens on the analytics overview page in React components (/wp-
admin/admin.php?page=wc-admin&path=analytics-overview)
Is there a reason that the string variable isn't checked before the
replace?
https://github.com/WordPress/WordPress/blob/master/wp-
includes/js/dist/i18n.js#L172
Happens and tested on WooCommerce versions:
- 9.6.1
- 9.6.2
- 9.8.4
- 9.9.4
- 9.9.5
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64383>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list