Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#47009 new defect (bug)

WP_Query bug with author=0

Reported by: mikylucky's profile mikylucky Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Query Keywords:
Focuses: Cc:

Description

Hi all,
I found a weird behaviour of WP_Query using the argument author.

If author is set to 0, the query returns all the posts and not an empty set.

Is this a wanted behaviour or a bug?

Change History (1)

#1 @mukesh27
5 years ago

  • Component changed from General to Query
Note: See TracTickets for help on using tickets.