Make WordPress Core


Ignore:
Timestamp:
08/26/2011 08:31:30 PM (14 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/script-loader.php

    r18609 r18610  
    627627
    628628/**
    629  * Hooks to print the scripts and styles in the footer.
    630  *
    631  * @since 2.8
    632  */
    633 function wp_print_footer_scripts() {
     629 * Private, for use in *_footer_scripts hooks
     630 *
     631 * @since 3.3
     632 */
     633function _wp_footer_scripts() {
    634634    print_late_styles();
    635635    print_footer_scripts();
    636 
    637     if ( !is_admin() )
    638         do_action('wp_print_footer_scripts');
    639 
    640     return true;
     636}
     637
     638/**
     639 * Hooks to print the scripts and styles in the footer.
     640 *
     641 * @since 2.8
     642 */
     643function wp_print_footer_scripts() {
     644    do_action('wp_print_footer_scripts');
    641645}
    642646
Note: See TracChangeset for help on using the changeset viewer.