Make WordPress Core


Ignore:
Timestamp:
12/26/2010 10:00:50 PM (14 years ago)
Author:
ryan
Message:

Don't sanitize_key() the post type so that colons aren't stripped from attachment types. Props nacin. fixes #15982

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r17146 r17155  
    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 );
Note: See TracChangeset for help on using the changeset viewer.