Add a hook in print_footer_scripts as in print_head_scripts, props arena, fixes #9856

git-svn-id: https://develop.svn.wordpress.org/trunk@11455 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-05-25 11:14:39 +00:00
parent b6d0536c00
commit c8e497257e
1 changed files with 3 additions and 0 deletions

View File

@ -578,6 +578,9 @@ function print_head_scripts() {
function print_footer_scripts() {
global $wp_scripts, $concatenate_scripts;
if ( ! did_action('wp_print_footer_scripts') )
do_action('wp_print_footer_scripts');
if ( !is_a($wp_scripts, 'WP_Scripts') )
return array(); // No need to run if not instantiated.