- Clone these files into a plugin directory
- Activate plugin (will populate several postmeta table rows about most recent posts)
- Open that post in the editor
- See the textbox in the Publish Status panel with label "Edit me:"
- Put any string into that input
- Try to save
- Encounter error
Updating failed. Could not update the meta value of example_post_meta in database.
This is because of multiple values present in the DB for the OTHER meta field (the one not being edited) registered as "single" => true
.
If the input is for the meta with existing multiple rows, they are all updated. But if it's for a separate meta value, the presence of multiple rows for the "single" => true
meta field prevents saving any other registered meta.