WordPress.org

Make WordPress Core

Changeset 5794


Ignore:
Timestamp:
07/09/07 21:22:38 (8 years ago)
Author:
ryan
Message:

Don't load all includes by default. We have our own script loader. fixes #4512

Location:
trunk/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/scriptaculous/scriptaculous.js

    r5792 r5794  
    5050      var path = s.src.replace(/scriptaculous\.js(\?.*)?$/,''); 
    5151      var includes = s.src.match(/\?.*load=([a-z,]*)/); 
    52       (includes ? includes[1] : 'builder,effects,dragdrop,controls,slider,sound').split(',').each( 
     52      if ( includes ) 
     53       includes[1].split(',').each( 
    5354       function(include) { Scriptaculous.require(path+include+'.js') }); 
    5455    }); 
  • trunk/wp-includes/js/scriptaculous/wp-scriptaculous.js

    r5792 r5794  
    5050      var path = s.src.replace(/scriptaculous\.js(\?.*)?$/,''); 
    5151      var includes = s.src.match(/\?.*load=([a-z,]*)/); 
    52       (includes ? includes[1] : 'builder,effects,dragdrop,controls,slider,sound').split(',').each( 
     52      if ( includes ) 
     53       includes[1].split(',').each( 
    5354       function(include) { Scriptaculous.require(path+include+'.js') }); 
    5455    }); 
  • trunk/wp-includes/script-loader.php

    r5793 r5794  
    6161        ) ); 
    6262 
    63         $this->add( 'scriptaculous-root', '/wp-includes/js/scriptaculous/wp-scriptaculous.js', array('prototype'), '1.7.1-b3'); 
     63        $this->add( 'scriptaculous-root', '/wp-includes/js/scriptaculous/scriptaculous.js', array('prototype'), '1.7.1-b3'); 
    6464        $this->add( 'scriptaculous-builder', '/wp-includes/js/scriptaculous/builder.js', array('scriptaculous-root'), '1.7.1-b3'); 
    6565        $this->add( 'scriptaculous-dragdrop', '/wp-includes/js/scriptaculous/dragdrop.js', array('scriptaculous-builder', 'scriptaculous-effects'), '1.7.1-b3'); 
Note: See TracChangeset for help on using the changeset viewer.