WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#17056 closed defect (bug) (duplicate)

get_pages doesn't accept multiple post stati

Reported by: jakemgold Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: General Keywords:
Focuses: Cc:

Description

get_pages cannot retrieve multiple pages with multiple post stati (say, "public,private" due to the way it filters the post status and queries the database.

Use case is a client who wants to show private and public pages when logged in, only public pages when the user is not logged in.

Change History (2)

comment:1 @jakemgold4 years ago

  • Summary changed from get_pages doesn't except multiple post stati to get_pages doesn't accept multiple post stati

comment:2 @nacin4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Handled by the patch in #8592.

Note: See TracTickets for help on using tickets.