[wp-trac] [WordPress Trac] #51811: Query inconsistency between WP_Query and WP_Term_Query

WordPress Trac noreply at wordpress.org
Wed Nov 18 01:54:28 UTC 2020


#51811: Query inconsistency between WP_Query and WP_Term_Query
----------------------------------------+-------------------------------
 Reporter:  tonydjukic                  |       Owner:  (none)
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Query                       |     Version:  4.6
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:  coding-standards
----------------------------------------+-------------------------------
Changes (by SergeyBiryukov):

 * keywords:  dev-feedback => needs-patch good-first-bug
 * version:  5.5.3 => 4.6


Comment:

 Hi there, welcome back to WordPress Trac! Thanks for the ticket.

 Yes, I think it would make sense to have `s` as an alias for `search` here
 in `WP_Term_Query`.

 Changing the version to 4.6 as the earliest applicable, since
 `WP_Term_Query` was introduced in [37572] / #35381.

 That said, the `search` argument for `get_terms()` was introduced in
 [6799], so the inconsistency dates back to WordPress 2.5.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51811#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list