[wp-trac] [WordPress Trac] #28299: Admin Bar loading to early in wp-admin
WordPress Trac
noreply at wordpress.org
Sun May 18 11:26:04 UTC 2014
#28299: Admin Bar loading to early in wp-admin
--------------------------------+-----------------------------
Reporter: mbrandys | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.9
Severity: normal | Keywords:
Focuses: ui, administration |
--------------------------------+-----------------------------
Today I wanted to debug custom WP_Query that I have made on post edit page
(meta box) but when I opened my Debug Bar queries section I was unabled to
find it.
It was caused because of admin bar on administartion side is loading in
header instead of footer (on front side admin bar is loading in footer).
'''wp-includes\admin-bar.php'''
{{{
add_action( 'wp_footer', 'wp_admin_bar_render', 1000 );
add_action( 'in_admin_header', 'wp_admin_bar_render', 0 );
}}}
I have pushed ''''wp_admin_bar_render'''' function to run in
''''in_admin_footer'''' instead of ''''in_admin_header''''. It fixed the
problem but I noticed it breaks display of admin bar and left menu on
smaller screens (width less than 782px) as footer gets hidden.
I was wondering if there are any reason to keep admin bar loading in
header on administartion area?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28299>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list