Skip to:

Opened 16 months ago

Last modified 10 months ago

#8836 assigned task

Create a wrapper function for sprintf to prevent potential fatal errors.

Reported by: imath's profile imath Owned by: imath's profile imath
Milestone: Under Consideration Priority: normal
Severity: normal Version:
Component: I18N 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 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 (1)

#1 @imath
10 months ago

  • Milestone changed from 12.0.0 to Under Consideration
  • Priority changed from high to normal

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.

Note: See TracTickets for help on using tickets.