[wp-trac] [WordPress Trac] #49484: Add option 'OR' to wp_sprintf_l()

WordPress Trac noreply at wordpress.org
Sat Sep 26 19:47:58 UTC 2020


#49484: Add option 'OR' to wp_sprintf_l()
-----------------------------+-----------------------------
 Reporter:  pedromendonca    |       Owner:  SergeyBiryukov
     Type:  feature request  |      Status:  reviewing
 Priority:  normal           |   Milestone:  5.6
Component:  Formatting       |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+-----------------------------

Comment (by TimothyBlynJacobs):

 Do we need the extra `$`? In other words, what about `%la` and %lo`. There
 is precedent for alphanumeric characters used as flags.

 https://www.man7.org/linux/man-pages/man3/sprintf.3.html
 https://en.wikipedia.org/wiki/Printf_format_string#Custom_format_placeholders

 I worry that the `$` will be confused with the position syntax.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49484#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list