WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#47009 new defect (bug)

WP_Query bug with author=0

Reported by: 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
3 months ago

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