[wp-trac] [WordPress Trac] #29614: wp_update_term() shouldn't allow a term to be assigned to a missing parent
WordPress Trac
noreply at wordpress.org
Thu Oct 9 18:04:38 UTC 2014
#29614: wp_update_term() shouldn't allow a term to be assigned to a missing parent
-----------------------------+------------------
Reporter: danielbachhuber | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.1
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+------------------
Changes (by boonebgorges):
* keywords: needs-unit-tests has-patch => has-patch
Comment:
> The only terms that get cleaned are those that are attached to posts
<---- that is a bug.
Yes, but it's a red herring. The issue here is that `wp_update_term()`
should fail when the parent doesn't exist, not necessarily that it should
fail when the parent is *deleted*. So the proposed unit test is testing
too many things. I'll open a separate ticket for it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29614#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list