WordPress.org

Make WordPress Core

Changeset 27585


Ignore:
Timestamp:
03/18/2014 03:30:12 PM (8 years ago)
Author:
ocean90
Message:

Widget Customizer: Move preview script to wp_default_scripts().

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-widgets.php

    r27584 r27585  
    751751     */
    752752    static function customize_preview_enqueue_deps() {
    753         wp_enqueue_script(
    754             'customize-preview-widgets',
    755             includes_url( 'js/customize-preview-widgets.js' ),
    756             array( 'jquery', 'wp-util', 'customize-preview' )
    757         );
     753        wp_enqueue_script( 'customize-preview-widgets' );
    758754
    759755        add_action( 'wp_print_styles', array( __CLASS__, 'inject_preview_css' ), 1 );
  • trunk/src/wp-includes/script-loader.php

    r27525 r27585  
    380380
    381381    $scripts->add( 'customize-widgets', "/wp-admin/js/customize-widgets$suffix.js", array( 'jquery', 'jquery-ui-sortable', 'jquery-ui-droppable', 'wp-backbone', 'customize-controls' ), false, 1 );
     382    $scripts->add( 'customize-preview-widgets', "/wp-includes/js/customize-preview-widgets$suffix.js", array( 'jquery', 'wp-util', 'customize-preview' ), false, 1 );
    382383
    383384    $scripts->add( 'accordion', "/wp-admin/js/accordion$suffix.js", array( 'jquery' ), false, 1 );
Note: See TracChangeset for help on using the changeset viewer.