Changes to post type and taxonomies functions