Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#3910 closed defect (bug) (duplicate)

v2.1.2 does not output "current_page_item" tag for blog post Page

Reported by: dwzemens's profile 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)

#1 @foolswisdom
17 years ago

  • Milestone changed from 2.3 to 2.1.3
  • Version set to 2.1.2

#2 @jhodgdon
17 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

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.

#3 follow-up: @jhodgdon
17 years ago

That was SVN revision # 4984

#4 in reply to: ↑ 3 ; follow-up: @dwzemens
17 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 @dwzemens
17 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 @dwzemens
17 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.

#7 in reply to: ↑ 4 @jhodgdon
17 years ago

  • Resolution set to duplicate
  • Status changed from reopened to closed

This is the same problem reported on "reopended" ticket #2959.

Then I will close this ticket as a duplicate, and continue discussion there.

#8 @Nazgul
17 years ago

  • Milestone 2.1.3 deleted
Note: See TracTickets for help on using tickets.