[wp-trac] [WordPress Trac] #56902: Creating taxonomy templates for specific terms are wrongly displayed as not found

WordPress Trac noreply at wordpress.org
Tue Nov 8 18:31:08 UTC 2022


#56902: Creating taxonomy templates for specific terms are wrongly displayed as not
found
-------------------------------------------------+-------------------------
 Reporter:  franz00                              |       Owner:  desrosj
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.1.1
Component:  Editor                               |     Version:  6.1
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-screenshots needs-testing has-   |     Focuses:
  patch fixed-major                              |
-------------------------------------------------+-------------------------
Changes (by desrosj):

 * owner:  (none) => desrosj
 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54767" 54767]:
 {{{
 #!CommitTicketReference repository="" revision="54767"
 Fix: Category specific templates always appear as not found.

 According to the docs in
 developer.wordpress.org/reference/classes/wp_term_query/query
 WP_Term_Query:->query( string|array $query ) returns
 WP_Term[]|int[]|string[]|string, and we were using an inexistent object
 property terms making it always empty and look like the taxonomy did not
 exist.

 Props mamaduka, mikachan, ockham, franz00.
 Merges [54751] to the 6.1 branch.
 Fixes #56902.
 }}}

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


More information about the wp-trac mailing list