Opened 17 years ago
Closed 17 years ago
#9472 closed defect (bug) (fixed)
wp_list_pages() doesn't apply the "current_page_item/parent/ancestor" classes when browsing image/attachment pages
| Reported by: | minusfive | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 2.8 |
| Component: | Themes | Version: | 2.7.1 |
| Severity: | major | Keywords: | has-patch tested |
| Cc: | Focuses: |
Description
When you're browsing an "attachment" page which has been attached to a "Page", that Page and its ancestors don't get the "current_page_item/parent/ancestor" classes they should get when called using wp_list_pages() for navigation.
I simply added the "is_attachment()" conditional tag to the function and it works now. I'm attaching the wp-includes/post-template.php file with the modification applied.
Hope this was the right solution ;)
Attachments (3)
Change History (7)
#1
@
17 years ago
- Cc added
- Severity normal → major
Finally figured out how to save a diff file (I think) :) Here's the patch.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Change applied to line 624 of wp-includes/post-template.php