From de1f10c283eb5e3255e0f0685b16c9fc59b8d412 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 26 Dec 2010 22:00:50 +0000 Subject: [PATCH] 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 --- wp-includes/taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 8dbf8aab5f..72d387ad1b 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -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;