Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WP_Term_Meta_UI->save_meta called when updating meta programatically, deletes meta. #19

Open
alexgreendesign opened this issue Jul 8, 2021 · 1 comment

Comments

@alexgreendesign
Copy link

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().

@flyonthenet
Copy link

+1 Same issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants