Changeset 17688
- Timestamp:
- 04/23/2011 09:27:37 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r17686 r17688 355 355 356 356 $args['name'] = $taxonomy; 357 $args['object_type'] = (array) $object_type;357 $args['object_type'] = array_unique( (array)$object_type ); 358 358 359 359 $args['labels'] = get_taxonomy_labels( (object) $args ); … … 438 438 return false; 439 439 440 $wp_taxonomies[$taxonomy]->object_type[] = $object_type; 440 if ( ! in_array( $object_type, $wp_taxonomies[$taxonomy]->object_type ) ) 441 $wp_taxonomies[$taxonomy]->object_type[] = $object_type; 441 442 442 443 return true;
Note: See TracChangeset
for help on using the changeset viewer.