Opened 19 months ago
Last modified 3 months ago
#8836 assigned task
Create a wrapper function for sprintf to prevent potential fatal errors.
Reported by: | imath | Owned by: | imath |
---|---|---|---|
Milestone: | Awaiting Contributions | Priority: | normal |
Severity: | normal | Version: | |
Component: | I18N | Keywords: | needs-patch |
Cc: |
Description
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 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
Change History (2)
Note: See
TracTickets for help on using
tickets.
That would be nice to have this, but we must use our time for other priorities for now. Don't hesitate to submit a patch to help us progress.