Allow plugins to override default taxonomies. Props Denis-de-Bernardy. fixes #9647

git-svn-id: http://svn.automattic.com/wordpress/trunk@11129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-04-29 20:25:30 +00:00
parent ee0bfee679
commit fcd5b67d67
1 changed files with 0 additions and 3 deletions

View File

@ -170,9 +170,6 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) {
if (!is_array($wp_taxonomies))
$wp_taxonomies = array();
if (isset($wp_taxonomies[$taxonomy]))
return;
$defaults = array('hierarchical' => false, 'update_count_callback' => '', 'rewrite' => true, 'query_var' => true);
$args = wp_parse_args($args, $defaults);