#3910 closed defect (bug) (duplicate)
v2.1.2 does not output "current_page_item" tag for blog post Page
Reported by: | dwzemens | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.1.2 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
Version 2.1.2 does not output the CSS tag "current_page_item" for the Page that has been set to display the blog posts.
It works with my clean version of 2.1.1.
Thanks.
Change History (8)
#4
in reply to:
↑ 3
;
follow-up:
↓ 7
@
18 years ago
- Priority changed from low to normal
- Resolution worksforme deleted
- Status changed from closed to reopened
Replying to jhodgdon:
That was SVN revision # 4984
Perhaps I did not explain correctly. The current_page_item CSS tag *does not* outputs correctly for all Pages except the page the page that has been set to be the static "Posts page" --- i.e. the page that actually displays the chronological posts.
wp_list_pages()( does not add current_page_item class on the PAGE_FOR_POSTS -- all other pages are output correctly.
This is the same problem reported on "reopended" ticket #2959.
#5
@
18 years ago
I mistyped in the comment above --- The problem only appears when you are viewing the static "Posts page" and are on the same page. In this scenario, the CSS does not output the current_page_item tag. This is the only page where the defect occurs.
#6
@
18 years ago
You can see the behavior here:
http://www.stoneycreekwebdesign.com/_wp/?page_id=2
The "News(Blog)" page has been set to be the static Posts Page. It does not receive the current_page_item CSS tag from the wp_list_pages() function. If it did, on this page, it would have a graphic underline applied to it by the current_page_item tag. If you choose the "Home Page" navigation link you will see that underline applied, as the Home Page does receive the current_page_item tag from the function. This problem only occurs on the static Posts Page and only occurs in 2.1.2 as far as I can tell.
I tested this using the trunk (post-2.1.2).
What I am seeing is that when I make a list of pages using the wp_list_pages function, the LI that goes with the current page (when I am viewing that page, that is) is indeed marked with the current_page_item CSS class.
So I cannot reproduce this reported bug. Unless it is referring to something else, but this is the only place I found current_page_item in the WordPress code in version 2.1.1, so I am assuming that is what the reporter was talking about.