[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
Tue Dec 27 07:10:24 UTC 2016
#39402: `wp_delete_term` should check if post type supports categories instead of
assuming so
--------------------------+-----------------------------
Reporter: jfarthing84 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.7
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Let's say you have some posts that are in a certain category. Then, you
decide to create a new post type to replace that category. So, after you
switch the post type of the posts in this category to your new post type
and then delete the old category, all of the posts that you've just
converted are now assigned to the default category, even if the post type
doesn't support categories.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39402>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list