Widget Customizer: Move preview script to wp_default_scripts().
git-svn-id: https://develop.svn.wordpress.org/trunk@27585 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c2a4665966
commit
e60ee04f54
@ -750,11 +750,7 @@ class WP_Customize_Widgets {
|
||||
* @action wp_enqueue_scripts
|
||||
*/
|
||||
static function customize_preview_enqueue_deps() {
|
||||
wp_enqueue_script(
|
||||
'customize-preview-widgets',
|
||||
includes_url( 'js/customize-preview-widgets.js' ),
|
||||
array( 'jquery', 'wp-util', 'customize-preview' )
|
||||
);
|
||||
wp_enqueue_script( 'customize-preview-widgets' );
|
||||
|
||||
add_action( 'wp_print_styles', array( __CLASS__, 'inject_preview_css' ), 1 );
|
||||
|
||||
|
@ -379,6 +379,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
) );
|
||||
|
||||
$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 );
|
||||
$scripts->add( 'customize-preview-widgets', "/wp-includes/js/customize-preview-widgets$suffix.js", array( 'jquery', 'wp-util', 'customize-preview' ), false, 1 );
|
||||
|
||||
$scripts->add( 'accordion', "/wp-admin/js/accordion$suffix.js", array( 'jquery' ), false, 1 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user