No Admin-Bar in WP 3.1 (RC2) with "Optimize CSS Code"
Bug #696710 reported by
gerobe
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autoptimize |
Fix Committed
|
Undecided
|
David |
Bug Description
In the RC2 of WordPress 3.1 the new admin bar does not appear, if you select "Optimize CSS Code" in the Autoptimize plugin.
Related branches
lp:~amereservant/autoptimize/trunk
Ready for review
for merging
into
lp:~vcs-imports/autoptimize/trunk-cscvs
- VCS imports: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedclasses/autoptimizeStyles.php (+1/-1)
Changed in autoptimize: | |
assignee: | nobody → David (amereservant) |
Changed in autoptimize: | |
status: | New → Fix Committed |
To post a comment you must log in.
I think I found the reason for this. Autoptimize seems to combine all CSS code no matter what media they refer to. There is the line:
<style type="text/css" media=" print"> #wpadminbar { display:none; }</style>
In the code and Autoptimize puts this in the combined css for the screen display. The result is, that the admin bar is not displayed anymore.