Skip to:
Content

BuddyPress.org

Opened 4 years ago

Last modified 2 years ago

#8836 assigned task

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

Reported by: imath Owned by: imath
Priority: normal Milestone: Awaiting Contributions
Component: I18N Version:
Severity: normal 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)

#1 @imath
3 years ago

  • Milestone 12.0.0 → Under Consideration
  • Priority high → 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.

#2 @espellcaste
2 years ago

  • Milestone Under Consideration → Awaiting Contributions
Note: See TracTickets for help on using tickets.