Make WordPress Core


Ignore:
Timestamp:
06/29/2016 12:57:19 PM (9 years ago)
Author:
ocean90
Message:

I18N: Localize the jQuery UI datepicker.

This provides some default data for the jQuery UI datepicker. The localized data is already available via WP_Locale and is only passed to the datepicker if the script is enqueued.

Props clubduece, swissspidy, barryceelen, ocean90.
Fixes #29420.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r37708 r37908  
    405405// Script Loader
    406406add_action( 'wp_default_scripts', 'wp_default_scripts' );
     407add_action( 'wp_enqueue_scripts', 'wp_localize_jquery_ui_datepicker', 1000 );
     408add_action( 'admin_enqueue_scripts', 'wp_localize_jquery_ui_datepicker', 1000 );
    407409add_filter( 'wp_print_scripts', 'wp_just_in_time_script_localization' );
    408410add_filter( 'print_scripts_array', 'wp_prototype_before_jquery' );
Note: See TracChangeset for help on using the changeset viewer.