Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#16575 closed defect (bug) (duplicate)

get_posts() just broke

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

Description

Probably related to r17451 (see #16545).

get_posts() has broken when page_on_front == true.

Example:

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

print_r($posts);

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 16 years ago.

Download all attachments as: .zip

Change History (5)

#1 @nacin
16 years ago

  • Milestone Awaiting Review3.1

#2 @ryan
16 years ago

Confirmed. Trying to track down the problem.

#3 @ryan
16 years ago

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

#4 @nacin
16 years ago

  • Milestone 3.1
  • Resolutionduplicate
  • Status newclosed

Closing as duplicate of #16545.

@ryan
16 years ago

Note: See TracTickets for help on using tickets.