script loader fix from mdawaffe. fixes #2701

git-svn-id: https://develop.svn.wordpress.org/trunk@4105 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-08-18 05:23:41 +00:00
parent a313da93d7
commit af017d27c1
1 changed files with 2 additions and 0 deletions

View File

@ -188,6 +188,8 @@ class _WP_Script {
*/
function wp_print_scripts( $handles = false ) {
do_action( 'wp_print_scripts' );
if ( '' === $handles ) // for wp_head
$handles = false;
global $wp_scripts;
if ( !is_a($wp_scripts, 'WP_Scripts') ) {