Ticket #14910: sanitize_key-for-taxonomies-2.patch
File sanitize_key-for-taxonomies-2.patch, 558 bytes (added by , 13 years ago) |
---|
-
wp-includes/taxonomy.php
346 346 unset( $args['capabilities'] ); 347 347 348 348 $args['name'] = $taxonomy; 349 $args['object_type'] = (array) $object_type;349 $args['object_type'] = is_array($object_type) ? array_map('sanitize_key', $object_type) : (array) sanitize_key($object_type); 350 350 351 351 $args['labels'] = get_taxonomy_labels( (object) $args ); 352 352 $args['label'] = $args['labels']->name;