[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:32:41 UTC 2014


#29614: wp_update_term() shouldn't allow a term to be assigned to a missing parent
-----------------------------+---------------------------
 Reporter:  danielbachhuber  |       Owner:  boonebgorges
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  4.1
Component:  Taxonomy         |     Version:
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-patch        |     Focuses:
-----------------------------+---------------------------

Comment (by boonebgorges):

 Replying to [comment:5 wonderboymusic]:
 > The only terms that get cleaned are those that are attached to posts
 <---- that is a bug. You should never have to call `clean_term_cache()`
 directly in app code or unit tests.
 >
 > We need to figure out how to clean terms that are not attached to posts
 on update.

 Following up: I don't see any evidence that being attached to posts has
 anything to with it. In this case, it has to do with clearing the cache
 for child terms when the parent is deleted. #29911.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29614#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list