m-settings: remove all persistent settings if key is null
The wp_settings_delete_all()
API internally uses wp_metadata_clear()
to clear all the keys in the persistent-sm-settings
metadata object. This call emits the metadata changed signal with both 'key' and 'value' set to NULL. When that happens, we need to clear all settings from the state file.
Edited by Julian Bouzas