WordPress.org

Make WordPress Core

Opened 5 years ago

Last modified 21 months ago

#15032 closed enhancement

WP_Object_Query — at Version 2

Reported by: scribu Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords: ongoing-project
Focuses: Cc:

Description (last modified by scribu)

There's a lot of overlap between WP_Query and WP_User_Query.

It would be good if they both inherited from a general WP_Object_Query, which would handle taxonomy and meta queries.

We could then more easily create a WP_Comment_Query class, for example, which would further reduce code duplication.

Change History (3)

comment:1 @scribu5 years ago

  • Type changed from defect (bug) to enhancement

comment:2 @scribu5 years ago

  • Description modified (diff)

@scribu5 years ago

Note: See TracTickets for help on using tickets.