[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
Tue Sep 23 03:11:50 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:  needs-unit-tests has-patch  |     Focuses:
----------------------------------------+------------------
Changes (by wonderboymusic):

 * keywords:  needs-patch needs-unit-tests => needs-unit-tests has-patch


Comment:

 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.

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


More information about the wp-trac mailing list