Don't sanitize_key() the post type so that colons aren't stripped from attachment types. Props nacin. fixes #15982
git-svn-id: http://svn.automattic.com/wordpress/trunk@17155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8919310a9a
commit
999afab871
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue