mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
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:
parent
6ee1075a4e
commit
de1f10c283
@ -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…
x
Reference in New Issue
Block a user