Opened 20 months ago
Closed 20 months ago
#18756 closed defect (bug) (duplicate)
.current_page_ancestor typo in Twenty Eleven CSS
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Bundled Theme | Version: | 3.2.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
It's a typo but because of the underscores and dashes it's quite hard to notice. The thing is that .current_page_ancestor is not on a wordpress page, it should be .current-page-ancestor. Note the - vs _.
In detail, instead of:
#access .current_page_item > a,
#access .current_page_ancestor > a {
font-weight: bold;
}
it should be >>>>
#access .current_page_item > a,
#access .current-page-ancestor > a {
font-weight: bold;
}
Attachments (1)
Change History (6)
comment:1
SergeyBiryukov — 20 months ago
- Keywords reporter-feedback added
OK, then there must be a bug somewhere else, because this is what I have in my generated page using stock Twenty Eleven.
menu-item menu-item-type-post_type menu-item-object-page current-page-ancestor menu-item-105
SergeyBiryukov — 20 months ago
comment:4
SergeyBiryukov — 20 months ago
- Keywords has-patch added
Ah, right. 'current-' . $queried_object->post_type . '-ancestor' is used too:
http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/nav-menu-template.php#L436
comment:5
SergeyBiryukov — 20 months ago
- Component changed from Themes to Bundled Theme
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
Actually, duplicate of #18643.
Note: See
TracTickets for help on using
tickets.

current_page_ancestor is valid. That's what WordPress adds in Walker_Nav_Menu and
Walker_Page:
http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/nav-menu-template.php#L455
http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/post-template.php#L1032