[wp-trac] [WordPress Trac] #41293: wp_get_post_terms do not work with 'id=>name' argument
WordPress Trac
noreply at wordpress.org
Thu Oct 5 08:25:49 UTC 2017
#41293: wp_get_post_terms do not work with 'id=>name' argument
------------------------------------------+-----------------------
Reporter: dany2217 | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.9
Component: Taxonomy | Version: 4.7.5
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+-----------------------
Comment (by isuke01):
Yes, I can confirm, there is issue,
Refer to docs:
[https://developer.wordpress.org/reference/functions/wp_get_post_terms/]
I can use args like ''''id=>name'''' or ''''id=>slug'''' - I can use args
like in '''WP_Term_Query::__construct'''
It was working. Im used that on a lot of sites, but now I getting reports,
that is something wrong on pages, I figured out is this a problem (
''''id=>name'''' , etc.).
The question is - it was intended change?
Yes I see on :
[https://codex.wordpress.org/Function_Reference/wp_get_post_terms] there
is nothing about that.
Which Docs should I use ?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41293#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list