Changeset 17513
- Timestamp:
- 03/09/2011 05:19:20 AM (14 years ago)
- Location:
- branches/3.1/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/wp-includes/taxonomy.php
r17495 r17513 16 16 */ 17 17 function create_initial_taxonomies() { 18 global $wp_rewrite; 19 18 20 register_taxonomy( 'category', 'post', array( 19 21 'hierarchical' => true, … … 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, … … 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, … … 330 332 331 333 $wp_rewrite->add_rewrite_tag("%$taxonomy%", $tag, $args['query_var'] ? "{$args['query_var']}=" : "taxonomy=$taxonomy&term="); 332 $wp_rewrite->add_permastruct($taxonomy, "{$ wp_rewrite->root}{$args['rewrite']['slug']}/%$taxonomy%", $args['rewrite']['with_front']);334 $wp_rewrite->add_permastruct($taxonomy, "{$args['rewrite']['slug']}/%$taxonomy%", $args['rewrite']['with_front']); 333 335 } 334 336 -
branches/3.1/wp-includes/version.php
r17491 r17513 30 30 * @global int $wp_db_version 31 31 */ 32 $wp_db_version = 17 056;32 $wp_db_version = 17510; 33 33 34 34 /**
Note: See TracChangeset
for help on using the changeset viewer.