Changeset 13733 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 03/17/2010 04:27:25 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/taxonomy.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r13704 r13733 161 161 function is_taxonomy( $taxonomy ) { 162 162 global $wp_taxonomies; 163 163 164 164 return isset($wp_taxonomies[$taxonomy]); 165 165 } … … 262 262 263 263 if ( false !== $args['rewrite'] && '' != get_option('permalink_structure') ) { 264 $args['rewrite'] = wp_parse_args($args['rewrite'], array( 265 'slug' => sanitize_title_with_dashes($taxonomy), 266 'with_front' => true, 267 )); 268 $wp_rewrite->add_rewrite_tag("%$taxonomy%", '([^/]+)', $args['query_var'] ? "{$args['query_var']}=" : "taxonomy=$taxonomy&term="); 269 $wp_rewrite->add_permastruct($taxonomy, "{$args['rewrite']['slug']}/%$taxonomy%", $args['rewrite']['with_front']); 264 $args['rewrite'] = wp_parse_args($args['rewrite'], array( 265 'slug' => sanitize_title_with_dashes($taxonomy), 266 'with_front' => true, 267 )); 268 $wp_rewrite->add_rewrite_tag("%$taxonomy%", '([^/]+)', $args['query_var'] ? "{$args['query_var']}=" : "taxonomy=$taxonomy&term="); 269 $wp_rewrite->add_permastruct($taxonomy, "{$args['rewrite']['slug']}/%$taxonomy%", $args['rewrite']['with_front']); 270 270 } 271 271
Note: See TracChangeset
for help on using the changeset viewer.