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

WordPress Trac noreply at wordpress.org
Mon Jun 6 20:50:41 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):

 I'm fine with committing something like [attachment:29420.diff] to trunk.
 But there needs to be a dev-note on make/core too. Maybe @zodiac1978
 want's to prepare the post?

 Can someone provide a demo plugin which uses the datepicker?
 [attachment:29420.diff]: Non-array entries are using `esc_js()`, the
 arrays not. Should this be `array_map( 'esc_js', array_values(
 $wp_locale->month ) )`? Is `esc_js()` even needed?

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


More information about the wp-trac mailing list