Skip to:
Content

BuddyPress.org

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's profile imath Owned by: imath's profile 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)

#1 @imath
14 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.

#2 @espellcaste
3 months ago

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