Fix action 'wp_print_footer_scropts' (on the front-end), see #11520

git-svn-id: http://svn.automattic.com/wordpress/trunk@18610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz
2011-08-26 20:31:30 +00:00
parent 12c6ba5771
commit 07d81969bd
2 changed files with 16 additions and 11 deletions

View File

@@ -625,19 +625,23 @@ function wp_print_head_scripts() {
return print_head_scripts();
}
/**
* Private, for use in *_footer_scripts hooks
*
* @since 3.3
*/
function _wp_footer_scripts() {
print_late_styles();
print_footer_scripts();
}
/**
* Hooks to print the scripts and styles in the footer.
*
* @since 2.8
*/
function wp_print_footer_scripts() {
print_late_styles();
print_footer_scripts();
if ( !is_admin() )
do_action('wp_print_footer_scripts');
return true;
do_action('wp_print_footer_scripts');
}
/**