Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#6277 closed defect (bug) (wontfix)

wp_list_pages shows pages whose parent is not published

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

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
19 years ago

  • Milestone2.5

#2 @hailin
19 years ago

  • Owner changed from anonymous to hailin
  • Status newassigned

I'll take a look at this.

#3 @hailin
19 years ago

  • Resolutionwontfix
  • Status assignedclosed

<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
19 years ago

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