[wp-trac] [WordPress Trac] #35381: Introduce `WP_Term_Query`

WordPress Trac noreply at wordpress.org
Sat Jan 9 04:22:44 UTC 2016


#35381: Introduce `WP_Term_Query`
--------------------------+----------------------------
 Reporter:  boonebgorges  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  Taxonomy      |    Version:
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+----------------------------
 `WP_Query`, `WP_User_Query`, and `WP_Comment_Query` parallel each other in
 a few ways that make them easier to maintain, easier to enhance, and
 easier for developers to use. At some point in the future - say, when WP
 can start using PHP traits - we may actually be able to abstract out some
 of the shared functionality. (RIP
 [https://core.trac.wordpress.org/changeset/16353 WP_Object_Query].)

 In the meantime, `get_terms()` is the black sheep of the family. The more
 we add onto it, the harder it gets to maintain. See eg #34996. Let's
 impose some structure on it, so that it looks and feels more like our
 other object query classes.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35381>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list