Bug fix for attachment posts & get_object_taxonomies