Ticket #47053: 47053.4.patch
File 47053.4.patch, 1.6 KB (added by , 5 years ago) |
---|
-
src/js/_enqueues/lib/admin-bar.js
505 505 aB = d.getElementById('wpadminbar'); 506 506 507 507 if ( d.body && aB ) { 508 d.body.appendChild( aB );509 508 510 509 if ( aB.className ) 511 510 aB.className = aB.className.replace(/nojs/, ''); -
src/wp-includes/default-filters.php
535 535 add_action( 'admin_init', '_wp_admin_bar_init' ); 536 536 add_action( 'before_signup_header', '_wp_admin_bar_init' ); 537 537 add_action( 'activate_header', '_wp_admin_bar_init' ); 538 add_action( 'wp_ footer', 'wp_admin_bar_render', 1000 );538 add_action( 'wp_body_open', 'wp_admin_bar_render', 1000 ); 539 539 add_action( 'in_admin_header', 'wp_admin_bar_render', 0 ); 540 540 541 541 // Former admin filters that can also be hooked on the front end -
src/wp-includes/general-template.php
2863 2863 */ 2864 2864 function wp_footer() { 2865 2865 /** 2866 * Sets up the Admin Bar if the current theme does not use `wp_body_open`. 2867 * 2868 * @since 5.2.0 2869 */ 2870 if ( ! did_action( 'wp_body_open' ) ) { 2871 add_action( 'wp_footer', 'wp_admin_bar_render', 1000 ); 2872 } 2873 /** 2866 2874 * Prints scripts or data before the closing body tag on the front end. 2867 2875 * 2868 2876 * @since 1.5.1