Make WordPress Core

Ticket #16600: 16600.diff

File 16600.diff, 472 bytes (added by greuben, 14 years ago)
  • wp-includes/taxonomy.php

     
    353353
    354354        $args['name'] = $taxonomy;
    355355        $args['object_type'] = (array) $object_type;
     356        $args['object_type'] = array_map( 'sanitize_key', $args['object_type'] );
    356357
    357358        $args['labels'] = get_taxonomy_labels( (object) $args );
    358359        $args['label'] = $args['labels']->name;