Make WordPress Core

Opened 8 years ago

Last modified 3 years 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)

#1 @scribu
8 years ago

  • Type changed from defect (bug) to enhancement

#2 @scribu
8 years ago

  • Description modified (diff)

8 years ago

Note: See TracTickets for help on using tickets.