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

git-svn-id: https://develop.svn.wordpress.org/trunk@17155 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-12-26 22:00:50 +00:00
parent 6ee1075a4e
commit de1f10c283
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) {
unset( $args['capabilities'] );
$args['name'] = $taxonomy;
$args['object_type'] = is_array($object_type) ? array_map('sanitize_key', $object_type) : (array) sanitize_key($object_type);
$args['object_type'] = (array) $object_type;
$args['labels'] = get_taxonomy_labels( (object) $args );
$args['label'] = $args['labels']->name;