script loader fix from mdawaffe. fixes #2701

git-svn-id: http://svn.automattic.com/wordpress/trunk@4105 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-08-18 05:23:41 +00:00
parent f2ae26089d
commit 7102d4dd99

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') ) {