Remove unused variable, ensure extra_post_types is an array.