Changeset 19738 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 01/23/2012 07:12:04 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/taxonomy.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r19730 r19738 24 24 'hierarchical' => true, 25 25 'slug' => get_option('category_base') ? get_option('category_base') : 'category', 26 'with_front' => ( get_option('category_base') && ! $wp_rewrite->using_index_permalinks() ) ? false : true ) : false, 26 'with_front' => ( get_option('category_base') && ! $wp_rewrite->using_index_permalinks() ) ? false : true, 27 'ep_mask' => EP_CATEGORIES, 28 ) : false, 27 29 'public' => true, 28 30 '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' => ( get_option('tag_base') && ! $wp_rewrite->using_index_permalinks() ) ? false : true ) : false, 39 'with_front' => ( get_option('tag_base') && ! $wp_rewrite->using_index_permalinks() ) ? false : true, 40 'ep_mask' => EP_TAGS, 41 ) : false, 38 42 'public' => true, 39 43 'show_ui' => true, … … 322 326 'slug' => sanitize_title_with_dashes($taxonomy), 323 327 'with_front' => true, 324 'hierarchical' => false 328 'hierarchical' => false, 329 'ep_mask' => EP_NONE, 325 330 )); 326 331 … … 331 336 332 337 $wp_rewrite->add_rewrite_tag("%$taxonomy%", $tag, $args['query_var'] ? "{$args['query_var']}=" : "taxonomy=$taxonomy&term="); 333 $wp_rewrite->add_permastruct($taxonomy, "{$args['rewrite']['slug']}/%$taxonomy%", $args['rewrite']['with_front'] );338 $wp_rewrite->add_permastruct($taxonomy, "{$args['rewrite']['slug']}/%$taxonomy%", $args['rewrite']['with_front'], $args['rewrite']['ep_mask'] ); 334 339 } 335 340
Note: See TracChangeset
for help on using the changeset viewer.