mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
Allow plugins to override default taxonomies. Props Denis-de-Bernardy. fixes #9647
git-svn-id: https://develop.svn.wordpress.org/trunk@11129 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b10853d492
commit
b1bf7685ce
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user