WordPress.org

Make WordPress Core

Changeset 21646


Ignore:
Timestamp:
08/28/12 17:51:35 (20 months ago)
Author:
nacin
Message:

Set jQuery Color to be a dependency for wp-lists, rather than enqueueing it everywhere.

Any plugin wishing to use jQuery color animations must set jquery-color as a dependency
(or enqueue it).

Remove the un-minified version of jQuery Color.

props scribu.
fixes #21692.

Location:
trunk
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin.php

    r21422 r21646  
    8181 
    8282wp_enqueue_script( 'common' ); 
    83 wp_enqueue_script( 'jquery-color' ); 
    8483 
    8584$editing = false; 
  • trunk/wp-includes/script-loader.php

    r21633 r21646  
    104104    $scripts->add( 'autosave', "/wp-includes/js/autosave$suffix.js", array('schedule', 'wp-ajax-response'), false, 1 ); 
    105105 
    106     $scripts->add( 'wp-lists', "/wp-includes/js/wp-lists$suffix.js", array('wp-ajax-response'), false, 1 ); 
     106    $scripts->add( 'wp-lists', "/wp-includes/js/wp-lists$suffix.js", array( 'wp-ajax-response', 'jquery-color' ), false, 1 ); 
    107107 
    108108    // WordPress no longer uses or bundles Prototype or script.aculo.us. These are now pulled from an external source. 
     
    161161 
    162162    // jQuery plugins 
    163     $scripts->add( 'jquery-color', "/wp-includes/js/jquery/jquery.color$suffix.js", array('jquery'), '2.1.0', 1 ); 
     163    $scripts->add( 'jquery-color', "/wp-includes/js/jquery/jquery.color.min.js", array('jquery'), '2.1.0', 1 ); 
    164164    $scripts->add( 'suggest', "/wp-includes/js/jquery/suggest$suffix.js", array('jquery'), '1.1-20110113', 1 ); 
    165165    $scripts->add( 'schedule', '/wp-includes/js/jquery/jquery.schedule.js', array('jquery'), '20m', 1 ); 
Note: See TracChangeset for help on using the changeset viewer.