[wp-trac] [WordPress Trac] #48319: About wp_date function when locale is 'ja'

WordPress Trac noreply at wordpress.org
Wed Oct 16 09:52:36 UTC 2019


#48319: About wp_date function when locale is 'ja'
--------------------------+---------------------
 Reporter:  tmatsuur      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.3
Component:  Date/Time     |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+---------------------

Comment (by Rarst):

 I am hesitant to change `backslashit()` implementation. While de-facto
 core use seems to ''only'' be in date stuff, it's not documented as such
 and who knows how it might be used downstream.

 So far I am thinking a conservative fix, changing to `addcslashes(
 $string, 'A..Za..z' )` in `wp_date()` implementation. Not going to date
 format only yet. Probably more future proof too (e.g. what if new format
 character is added upstream).

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


More information about the wp-trac mailing list