[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 09:23:49 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: Template | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
I'd expect show_admin_bar(false) to totally hide the admin toolbar.
Instead it leaves fragments in the app, for example in the header it still
adds:
{{{
<link rel='stylesheet' id='admin-bar-css' href='/wp-includes/css/admin-
bar.css' type='text/css' media='all' />
<style type="text/css" media="print">#wpadminbar { display:none; }</style>
<style type="text/css" media="screen">
html { margin-top: 28px !important; }
* html body { margin-top: 28px !important; }
</style>
}}}
And in the footer:
{{{
<script type='text/javascript' src='/wp-includes/js/admin-
bar.js'></script>
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21746>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list