setUserSetting cannot handle hyphens
|Reported by:||nacin||Owned by:|
sanitize_key() can, setUserSetting should be able to as well. It's not that sanitize_key() plays a role, but it sets expectations for what is allowed in keys across core. Both keys and values should be able to accept a hyphen.
The post-thumbnail image size cannot be remembered, for example, if it is added to image_size_names_choose.