Ticket #47053: 47053.3.patch
File 47053.3.patch, 1.2 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 if ( ! did_action( 'wp_body_open' ) ) { 540 add_action( 'wp_footer', 'wp_admin_bar_render', 1000 ); 541 } 539 542 add_action( 'in_admin_header', 'wp_admin_bar_render', 0 ); 540 543 541 544 // Former admin filters that can also be hooked on the front end