Make WordPress Core

Ticket #15982: 15982.diff

File 15982.diff, 553 bytes (added by nacin, 14 years ago)
  • wp-includes/taxonomy.php

     
    352352        unset( $args['capabilities'] );
    353353
    354354        $args['name'] = $taxonomy;
    355         $args['object_type'] = is_array($object_type) ? array_map('sanitize_key', $object_type) : (array) sanitize_key($object_type);
     355        $args['object_type'] = (array) $object_type;
    356356
    357357        $args['labels'] = get_taxonomy_labels( (object) $args );
    358358        $args['label'] = $args['labels']->name;