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

WordPress Trac noreply at wordpress.org
Mon Sep 28 16:18:46 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):

 That's a good point, but when would a user use `%la` currently? Wouldn't
 that give you an invalid sentence which is the exact purpose of the `l`

 >>> wp_sprintf( 'Hello %la', [ 'James', 'Jill' ] );
 => "Hello James and Jilla"

 >>> wp_sprintf( 'Hello %l$a', [ 'James', 'Jill' ] );
 => "Hello James and Jill$a"

 I think someone intentionally using `%la` or `%l$a` are both quite

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

More information about the wp-trac mailing list