If wp_update_term() is called, to update a term outside of the admin screen, the save_meta function is run from the edit_term action, causing the image meta to be deleted.
There is a line that says:
// Bail if not updating meta_key
But it doesn't actually bail, proceeding to call $this->set_meta, which then calls delete_term_meta().
If
wp_update_term()is called, to update a term outside of the admin screen, the save_meta function is run from theedit_termaction, causing the image meta to be deleted.There is a line that says:
// Bail if not updating meta_keyBut it doesn't actually bail, proceeding to call $this->set_meta, which then calls delete_term_meta().