From 153b1ef5919da7552cf9f232631f2229648c8a5a Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 2 Mar 2012 22:51:29 +0000 Subject: [PATCH] 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 --- wp-includes/admin-bar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index 41800c5707..800f533da0 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -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.