Opened 13 years ago
Closed 12 years ago
#20698 closed defect (bug) (fixed)
Minor validation errors in admin bar
Reported by: | araucaria | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | minor | Version: | 3.3 |
Component: | Administration | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Several elements in the admin bar have unwanted white space at the start of the class attribute:
<ul id="wp-admin-bar-appearance" class=" ab-submenu">
and
<li id="wp-admin-bar-search" class=" admin-bar-search">
Attachments (3)
Change History (6)
#2
@
12 years ago
- Keywords commit added; dev-feedback removed
- Milestone changed from Awaiting Review to 3.5
- Version changed from 3.3.2 to 3.3
While both patches probably work, we can make the intent a bit clearer. Try 20698.2.diff. (And when in doubt, a trim() can sweep most awkward logic branches under the rug.)
Note: See
TracTickets for help on using
tickets.
I've confirmed this with trunk code at rev 20826.
I've played about with the class-wp-admin-bar.php file and I think I've got a fix too.