Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#6277 closed defect (bug) (wontfix)

wp_list_pages shows pages whose parent is not published

Reported by: mark8barnes's profile mark8barnes Owned by: hailin's profile hailin
Milestone: Priority: high
Severity: normal Version: 2.5
Component: Security Keywords:
Focuses: Cc:

Description

wp_list_pages use to exclude pages whose parent was private or unpublished. The behaviour has now changed, and these pages and returned as orphans at the end of the list. This potentially exposes pages which the webmaster would previously have considered hidden. This change seems to have occurred between beta 1 and RC-1.

Change History (4)

#1 @lloydbudd
15 years ago

  • Milestone set to 2.5

#2 @hailin
15 years ago

  • Owner changed from anonymous to hailin
  • Status changed from new to assigned

I'll take a look at this.

#3 @hailin
15 years ago

  • Resolution set to wontfix
  • Status changed from assigned to closed

<eagleclaw> the ticket complains another issue: suppose page5 is private, and page5 has children page6, and page7, both are "publish". The ticket complains that page6 and page7 should not be listed, since their parent (page5) is private

<rboren> ah, gotcha

<rboren> I need more coffee.

<rboren> I'm not sure whether the consider the old or the new behavior a bug.

<eagleclaw> me too. I think the new way is acceptable
Page should be treated individually. If user want a page to be private, he should set it to private. Inheriting the "private" status can be tricky and misleading

<rboren> Agreed. I think wontfix is acceptable for that ticket.
<eagleclaw> cool

#4 @lloydbudd
15 years ago

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