[wp-trac] [WordPress Trac] #21746: show_admin_bar(false) still adds CSS and JS
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 31 10:33:24 UTC 2012
#21746: show_admin_bar(false) still adds CSS and JS
--------------------------+------------------------------
Reporter: ahmednuaman | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Toolbar | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by SergeyBiryukov):
Updated the Codex page. It suggested calling `show_admin_bar()` in
template files before `wp_footer()`, which is wrong.
It should be called immediately upon plugin load, so `functions.php` is
the appropriate place: [[BR]]
http://core.trac.wordpress.org/browser/tags/3.4.1/wp-includes/admin-
bar.php#L700
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21746#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list