Ticket #3910 (closed defect: duplicate)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: dwzemens Assigned to: anonymous
Priority: normal Milestone:
Component: General Version: 2.1.2
Severity: normal Keywords:
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

03/05/07 17:00:10 changed by foolswisdom

  • version set to 2.1.2.
  • milestone changed from 2.3 to 2.1.3.

03/07/07 04:38:26 changed by jhodgdon

  • status changed from new to closed.
  • resolution set to worksforme.

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.

(follow-up: ↓ 4 ) 03/07/07 05:07:33 changed by jhodgdon

That was SVN revision # 4984

(in reply to: ↑ 3 ; follow-up: ↓ 7 ) 03/07/07 12:50:39 changed by dwzemens

  • priority changed from low to normal.
  • status changed from closed to reopened.
  • resolution deleted.

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.

03/07/07 12:53:34 changed by dwzemens

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.

03/07/07 13:03:07 changed by dwzemens

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.

(in reply to: ↑ 4 ) 03/07/07 14:59:56 changed by jhodgdon

  • status changed from reopened to closed.
  • resolution set to duplicate.

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

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

03/07/07 22:05:43 changed by Nazgul

  • milestone deleted.