[buddypress-trac] [BuddyPress Trac] #8836: Create a wrapper function for sprintf to prevent potential fatal errors.
buddypress-trac
noreply at wordpress.org
Wed Feb 15 09:27:15 UTC 2023
#8836: Create a wrapper function for sprintf to prevent potential fatal errors.
--------------------+-------------------------
Reporter: imath | Owner: imath
Type: task | Status: assigned
Priority: high | Milestone: 12.0.0
Component: I18N | Version:
Severity: normal | Keywords: needs-patch
--------------------+-------------------------
This is a follow up of #8821
Create a "sanitization" function wrapping sprintf() to make sure expected
placeholders are found into the translated strings.
Although we think this kind of function should be made available by
WordPress, in [https://core.trac.wordpress.org/ticket/55776#comment:3 this
ticket] the issue was diagnosed as invalid. It's probably ok when you have
a lot of polyglots contributors like WordPress has, **it's a different
situation for plugins**: let's prevent these potential fatals in 12.0
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8836>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list