mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 15:31:42 +01:00
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:
parent
f2ae26089d
commit
7102d4dd99
@ -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') ) {
|
||||
|
Loading…
Reference in New Issue
Block a user