mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 10:14:31 +00:00
Fade using jquery.color. Props JeremyVisser. fixes #5369
git-svn-id: https://develop.svn.wordpress.org/trunk@6572 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -84,24 +84,10 @@ class WP_Scripts {
|
||||
$this->add( 'dimensions', '/wp-includes/js/jquery/jquery.dimensions.min.js', array('jquery'), '1.1.2');
|
||||
$this->add( 'suggest', '/wp-includes/js/jquery/suggest.js', array('dimensions'), '1.1');
|
||||
$this->add( 'schedule', '/wp-includes/js/jquery/jquery.schedule.js', array('jquery'), '20');
|
||||
$this->add( 'jquery-color', '/wp-includes/js/jquery/jquery.color.js', array('jquery'), '1.0');
|
||||
|
||||
if ( is_admin() ) {
|
||||
global $pagenow;
|
||||
$man = false;
|
||||
switch ( $pagenow ) :
|
||||
case 'post.php' :
|
||||
case 'post-new.php' :
|
||||
$man = 'postmeta';
|
||||
break;
|
||||
case 'page.php' :
|
||||
case 'page-new.php' :
|
||||
$man = 'pagemeta';
|
||||
break;
|
||||
case 'link-add.php' :
|
||||
case 'link.php' :
|
||||
$man = 'linkmeta';
|
||||
break;
|
||||
endswitch;
|
||||
$this->add( 'admin', '/wp-admin/js/admin.js', array('jquery-color'), '20080107');
|
||||
$this->add( 'ajaxcat', '/wp-admin/js/cat.js', array( 'wp-lists' ), '20071101' );
|
||||
$this->localize( 'ajaxcat', 'catL10n', array(
|
||||
'add' => attribute_escape(__('Add')),
|
||||
|
||||
Reference in New Issue
Block a user