[wp-trac] [WordPress Trac] #56902: Twenty Twenty Three: Tag and category template creation for specific items are wrongly displayed as not found despite being successfully created
WordPress Trac
noreply at wordpress.org
Fri Nov 4 18:22:32 UTC 2022
#56902: Twenty Twenty Three: Tag and category template creation for specific items
are wrongly displayed as not found despite being successfully created
-------------------------------------------------+-------------------------
Reporter: franz00 | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.1.1
Component: Bundled Theme | Version: 6.1
Severity: normal | Resolution:
Keywords: has-screenshots needs-testing has- | Focuses:
patch |
-------------------------------------------------+-------------------------
Comment (by jorgefilipecosta):
In [changeset:"54751" 54751]:
{{{
#!CommitTicketReference repository="" revision="54751"
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.
See #56902.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56902#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list