From c8e497257e3f4ba29462021279a60f2ffc04e31b Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Mon, 25 May 2009 11:14:39 +0000 Subject: [PATCH] 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 --- wp-includes/script-loader.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 4779a5ac06..34acdb2475 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -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.