[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 Sep 11 20:08:37 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-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------

Comment (by jesin):

 Patch [attachment:29614.2.diff] includes assertions for **change to
 existing parent** and **deletion of a parent**.

 Without the patch the third assertion fails.

 The term cache had to be cleared with `clean_term_cache()`. Do we have a
 method of getting terms without caching them?

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


More information about the wp-trac mailing list