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: http://svn.automattic.com/wordpress/trunk@20099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
177d1efb9f
commit
3b9133ef4a
|
@ -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