From 3b9133ef4a2c5197843366376ae43fb7a2449ae8 Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@20099 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 41800c570..800f533da 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.