[wp-trac] [WordPress Trac] #50080: wp_set_post_tags() adds terms to post types that don't support the term's taxonomy
WordPress Trac
noreply at wordpress.org
Mon May 4 16:40:11 UTC 2020
#50080: wp_set_post_tags() adds terms to post types that don't support the term's
taxonomy
-------------------------------+------------------------------
Reporter: paulschreiber | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 2.3
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by ocean90):
* keywords: => reporter-feedback
* version: 5.4 => 2.3
Comment:
`wp_set_post_tags()`/`wp_set_post_categories()` are wrappers for
`wp_set_object_terms()` which indeed don't verify the type of the object
ID and never have. Neither does `wp_get_object_terms()`.
How did you notice this? Is there a specific bug that this behaviour is
causing?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50080#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list