Ticket #11520: footer_scripts.patch
File footer_scripts.patch, 2.8 KB (added by , 13 years ago) |
---|
-
wp-includes/default-filters.php
214 214 add_action( 'wp_head', 'wp_print_head_scripts', 9 ); 215 215 add_action( 'wp_head', 'wp_generator' ); 216 216 add_action( 'wp_head', 'rel_canonical' ); 217 add_action( 'wp_footer', 'wp_print_footer_scripts' 217 add_action( 'wp_footer', 'wp_print_footer_scripts', 20 ); 218 218 add_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 ); 219 219 add_action( 'template_redirect', 'wp_shortlink_header', 11, 0 ); 220 add_action( 'wp_print_footer_scripts', '_wp_footer_scripts' ); 220 221 221 222 if ( isset( $_GET['replytocom'] ) ) 222 223 add_filter( 'pre_option_blog_public', '__return_zero' ); 223 224 224 225 // Login actions 225 226 add_action( 'login_head', 'wp_print_head_scripts', 9 ); 226 add_action( 'login_footer', 'wp_print_footer_scripts' 227 add_action( 'login_footer', 'wp_print_footer_scripts', 20 ); 227 228 add_action( 'login_init', 'send_frame_options_header', 10, 0 ); 228 229 229 230 // Feed Generator Tags … … 244 245 add_action( 'do_robots', 'do_robots' ); 245 246 add_action( 'sanitize_comment_cookies', 'sanitize_comment_cookies' ); 246 247 add_action( 'admin_print_scripts', 'print_head_scripts', 20 ); 247 add_action( 'admin_print_footer_scripts', ' wp_print_footer_scripts',20 );248 add_action( 'admin_print_footer_scripts', '_wp_footer_scripts', 20 ); 248 249 add_action( 'admin_print_styles', 'print_admin_styles', 20 ); 249 250 add_action( 'init', 'smilies_init', 5 ); 250 251 add_action( 'plugins_loaded', 'wp_maybe_load_widgets', 0 ); … … 284 285 285 286 unset($filter, $action); 286 287 287 ?> 288 No newline at end of file 288 ?> -
wp-includes/script-loader.php
626 626 } 627 627 628 628 /** 629 * Private, for use in *_footer_scripts hooks 630 * 631 * @since 3.3 632 */ 633 function _wp_footer_scripts() { 634 print_late_styles(); 635 print_footer_scripts(); 636 } 637 638 /** 629 639 * Hooks to print the scripts and styles in the footer. 630 640 * 631 641 * @since 2.8 632 642 */ 633 643 function wp_print_footer_scripts() { 634 print_late_styles(); 635 print_footer_scripts(); 636 637 if ( !is_admin() ) 638 do_action('wp_print_footer_scripts'); 639 640 return true; 644 do_action('wp_print_footer_scripts'); 641 645 } 642 646 643 647 /**