In the admin, render the Toolbar immediately, rather than waiting until the footer. When intensive pages take a while to load, you aren't stuck without a working admin header. fixes #20161.
git-svn-id: https://develop.svn.wordpress.org/trunk@20099 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c56b5f3f59
commit
153b1ef591
@ -64,7 +64,7 @@ function wp_admin_bar_render() {
|
||||
do_action( 'wp_after_admin_bar_render' );
|
||||
}
|
||||
add_action( 'wp_footer', 'wp_admin_bar_render', 1000 );
|
||||
add_action( 'admin_footer', 'wp_admin_bar_render', 1000 );
|
||||
add_action( 'in_admin_header', 'wp_admin_bar_render', 0 );
|
||||
|
||||
/**
|
||||
* Add the WordPress logo menu.
|
||||
|
Loading…
Reference in New Issue
Block a user