Make WordPress Core

Changeset 18610


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

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

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-filters.php

    r18593 r18610  
    215215add_action( 'wp_head',             'wp_generator'                           );
    216216add_action( 'wp_head',             'rel_canonical'                          );
    217 add_action( 'wp_footer',           'wp_print_footer_scripts'                );
     217add_action( 'wp_footer',           'wp_print_footer_scripts',         20    );
    218218add_action( 'wp_head',             'wp_shortlink_wp_head',            10, 0 );
    219219add_action( 'template_redirect',   'wp_shortlink_header',             11, 0 );
     220add_action( 'wp_print_footer_scripts', '_wp_footer_scripts'                 );
    220221
    221222if ( isset( $_GET['replytocom'] ) )
     
    224225// Login actions
    225226add_action( 'login_head',          'wp_print_head_scripts',         9     );
    226 add_action( 'login_footer',        'wp_print_footer_scripts'              );
     227add_action( 'login_footer',        'wp_print_footer_scripts',       20    );
    227228add_action( 'login_init',          'send_frame_options_header',     10, 0 );
    228229
     
    245246add_action( 'sanitize_comment_cookies',   'sanitize_comment_cookies'                       );
    246247add_action( 'admin_print_scripts',        'print_head_scripts',                      20    );
    247 add_action( 'admin_print_footer_scripts', 'wp_print_footer_scripts',                 20    );
     248add_action( 'admin_print_footer_scripts', '_wp_footer_scripts'                             );
    248249add_action( 'admin_print_styles',         'print_admin_styles',                      20    );
    249250add_action( 'init',                       'smilies_init',                             5    );
  • 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.