Ticket #16662: 16662.3.diff
| File 16662.3.diff, 1.2 KB (added by , 15 years ago) |
|---|
-
wp-includes/taxonomy.php
15 15 * Creates the initial taxonomies when 'init' action is fired. 16 16 */ 17 17 function create_initial_taxonomies() { 18 global $wp_rewrite; 19 18 20 register_taxonomy( 'category', 'post', array( 19 21 'hierarchical' => true, 20 22 'update_count_callback' => '_update_post_term_count', … … 22 24 'rewrite' => did_action( 'init' ) ? array( 23 25 'hierarchical' => true, 24 26 'slug' => get_option('category_base') ? get_option('category_base') : 'category', 25 'with_front' => false) : false,27 'with_front' => ( get_option('category_base') && ! $wp_rewrite->using_index_permalinks() ) ? false : true ) : false, 26 28 'public' => true, 27 29 'show_ui' => true, 28 30 '_builtin' => true, … … 34 36 'query_var' => 'tag', 35 37 'rewrite' => did_action( 'init' ) ? array( 36 38 'slug' => get_option('tag_base') ? get_option('tag_base') : 'tag', 37 'with_front' => false) : false,39 'with_front' => ( get_option('category_base') && ! $wp_rewrite->using_index_permalinks() ) ? false : true ) : false, 38 40 'public' => true, 39 41 'show_ui' => true, 40 42 '_builtin' => true,