[wp-trac] [WordPress Trac] #61957: Taxonomies: Allow querying for all posts with any term of a given taxonomy

WordPress Trac noreply at wordpress.org
Wed Sep 11 10:20:40 UTC 2024


#61957: Taxonomies: Allow querying for all posts with any term of a given taxonomy
-----------------------------+------------------------------
 Reporter:  Bernhard Reiter  |       Owner:  (none)
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Taxonomy         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------------------

Comment (by Bernhard Reiter):

 @dmsnell Yeah, collisions can be an issue, but I don’t think they pose a
 whole new class of problems in this case; collisions between nested page
 routes and taxonomy term archive routes are documented already (e.g. in
 #16832, which was referenced by Sergey). Typically, these are solved
 either by order of precedence of rules, or by helpers such as
 [https://developer.wordpress.org/reference/functions/wp_unique_post_slug/
 wp_unique_post_slug].

 FWIW, there’s exhaustive unit test coverage of route patterns and what
 they’re translated to, and my WIP PR doesn’t break any of them, so I’m
 cautiously optimistic that we can make this work. I’ll start adding some
 unit test coverage for the patterns that my code is meant to support to
 see if those will unearth any type of collisions I didn’t think of.

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


More information about the wp-trac mailing list