WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#12600 closed defect (bug) (fixed)

Extend get_pages() to all hierarchical post types.

Reported by: ptahdunbar Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch
Focuses: Cc:

Description

Title explains it all.

Patch extends get_pages() by adding a new post_type parameter and checks whether the post type is hierarchical.

It also adds an additional post_status parameter and checks whether it is a registered post_status too.

Attachments (1)

get_pages.diff (1.4 KB) - added by ptahdunbar 4 years ago.

Download all attachments as: .zip

Change History (3)

ptahdunbar4 years ago

comment:1 ptahdunbar4 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.