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

WordPress Trac noreply at wordpress.org
Sun Jun 12 22:45: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 barryceelen):

 Only doing the localization stuff if `jquery-ui-datepicker` is actually
 enqueued might save some trees.

 [attachment:29420.6.diff 29420.6.diff] moves the function to late in the
 `wp_enqueue_scripts` and `admin_enqueue_scripts` in stead and checks if
 `wp_script_is( 'jquery-ui-datepicker', 'enqueued' )`.

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


More information about the wp-trac mailing list