Flush rewrite rules after a WordPress theme switch