[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:13:19 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: reporter-feedback |
-------------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: => reporter-feedback
* component: Template => Toolbar
Comment:
Could not reproduce. My guess is that you're calling `show_admin_bar(
false );` too late.
Both `_wp_admin_bar_init()` and `wp_admin_bar_render()` return early and
don't include any styles or scripts if the toolbar is properly disabled.
Have you tried disabling all plugins and switching to the default theme
(Twenty Eleven)?
Related/duplicate: #16249
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21746#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list