Revert previous change, apply new, better fix
Now properly detects bad M2M table names too.
Fix typo
Merge pull request #3086 from mkoistinen/fix_cms_check

Fix set_plugin_meta