[wp-trac] [WordPress Trac] #39402: `wp_delete_term` should check if post type supports categories instead of assuming so
WordPress Trac
noreply at wordpress.org
Wed Dec 28 18:48:30 UTC 2016
#39402: `wp_delete_term` should check if post type supports categories instead of
assuming so
--------------------------+------------------------------
Reporter: jfarthing84 | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+------------------------------
Changes (by jfarthing84):
* status: new => closed
* version: 4.7 =>
* resolution: => invalid
Comment:
As I think further about this, I believe this may be the responsibility of
the post type switcher plugin, seeing as core has no means of switching a
post type to begin with. Perhaps that plugin should unset object terms of
a specific taxonomy if the new post type doesn't support it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39402#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list