[wp-trac] [WordPress Trac] #29420: jQuery datepicker should be using the locale

WordPress Trac noreply at wordpress.org
Sat Jun 11 18:56:29 UTC 2016


#29420: jQuery datepicker should be using the locale
-------------------------------------+-------------------------
 Reporter:  zodiac1978               |       Owner:  swissspidy
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.6
Component:  I18N                     |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  ui
-------------------------------------+-------------------------

Comment (by ocean90):

 @barryceelen Thanks for the plugin and nice catch with the date format!

 [attachment:29420.2.diff] converts the PHP date format into jQuery UI's
 format. It also removes the `$scripts->localize()` call and passes the
 data directly into `$scripts->add_inline_script()`.
 We have to check whether `$wp_locale` is set otherwise it will cause a
 fatal error when `SCRIPT_DEBUG` is false.

 @zodiac1978, @barryceelen: Can you give [attachment:29420.2.diff] another
 test?

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


More information about the wp-trac mailing list