From 2158fa203b6ca928b577fe579463003d49b5ad90 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 4 Mar 2013 02:48:20 +0000 Subject: [PATCH] Fix array formatting. props WraithKenny. fixes #21210. git-svn-id: https://develop.svn.wordpress.org/trunk@23598 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/taxonomy.php | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index ad4a5e4f01..cb79334e57 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -317,18 +317,19 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) { if ( ! is_array($wp_taxonomies) ) $wp_taxonomies = array(); - $defaults = array( 'hierarchical' => false, - 'update_count_callback' => '', - 'rewrite' => true, - 'query_var' => $taxonomy, - 'public' => true, - 'show_ui' => null, - 'show_tagcloud' => null, - '_builtin' => false, - 'labels' => array(), - 'capabilities' => array(), - 'show_in_nav_menus' => null, - ); + $defaults = array( + 'hierarchical' => false, + 'update_count_callback' => '', + 'rewrite' => true, + 'query_var' => $taxonomy, + 'public' => true, + 'show_ui' => null, + 'show_tagcloud' => null, + '_builtin' => false, + 'labels' => array(), + 'capabilities' => array(), + 'show_in_nav_menus' => null, + ); $args = wp_parse_args($args, $defaults); if ( strlen( $taxonomy ) > 32 )