WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 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 5 years ago.

Download all attachments as: .zip

Change History (3)

@ptahdunbar5 years ago

comment:1 @ptahdunbar5 years ago

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