Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#16575 closed defect (bug) (duplicate)

get_posts() just broke

Reported by: johnbillion Owned by:
Milestone: Priority: normal
Severity: blocker Version: 3.1
Component: Query Keywords:
Focuses: Cc:


Probably related to r17451 (see #16545).

get_posts() has broken when page_on_front == true.


$posts = get_posts(array(
	'post_type' => 'post'


You'll get an empty array because the page_id query var is being set somewhere.

Attachments (1)

16575.diff (862 bytes) - added by ryan 5 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 @nacin5 years ago

  • Milestone changed from Awaiting Review to 3.1

comment:2 @ryan5 years ago

Confirmed. Trying to track down the problem.

comment:3 @ryan5 years ago

Some parts of parse_query() reparse $query, which is no longer passed. Back to the drawing board.

comment:4 @nacin5 years ago

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

Closing as duplicate of #16545.

@ryan5 years ago

Note: See TracTickets for help on using tickets.