lloc/Multisite-Language-Switcher — Issue #5: entry in wp_options ist not removed when post/page/tax is deleted
Author: TobiasBg
Created: 2011-11-10 17:51:39+00:00
State: open

When a post/page/tax is put into the Trash and the Trash is emptied, the corresponing row (with a name like "msls_" in the wp_options table should be removed as well, to keep the database table clean.
Maybe the plugin can hook into something like delete_post() for this?

A different approach might be to store the information as an entry in wp_postmeta. I believe that WordPress then takes care of removing the data from there, when the post/page is deleted.
This approach would however only apply to posts and pages. Taxonomies/archives would still need different handling and might need to stay in wp_options.