Ticket #47053: 47053.6.diff
File 47053.6.diff, 1.7 KB (added by , 5 years ago) |
---|
-
src/wp-includes/admin-bar.php
74 74 return; 75 75 } 76 76 77 // Return early if the admin bar was already rendered on `wp_body_open`. 78 if ( did_action( 'wp_body_open' ) && 'wp_body_open' !== current_action() ) { 79 return; 80 } 81 77 82 /** 78 83 * Load all necessary admin bar items. 79 84 * -
src/wp-includes/default-filters.php
538 538 add_action( 'before_signup_header', '_wp_admin_bar_init' ); 539 539 add_action( 'activate_header', '_wp_admin_bar_init' ); 540 540 add_action( 'wp_body_open', 'wp_admin_bar_render', 0 ); 541 add_action( 'wp_footer', 'wp_admin_bar_render', 1000 ); // Back-compat for themes not using `wp_body_open`. 541 542 add_action( 'in_admin_header', 'wp_admin_bar_render', 0 ); 542 543 543 544 // Former admin filters that can also be hooked on the front end. -
src/wp-includes/general-template.php
2893 2893 */ 2894 2894 function wp_footer() { 2895 2895 /** 2896 * Sets up the Admin Bar if the current theme does not use `wp_body_open`.2897 *2898 * @since 5.4.02899 */2900 if ( ! did_action( 'wp_body_open' ) ) {2901 add_action( 'wp_footer', 'wp_admin_bar_render', 1000 );2902 }2903 /**2904 2896 * Prints scripts or data before the closing body tag on the front end. 2905 2897 * 2906 2898 * @since 1.5.1