Ticket #10445: taxonomy.php.diff
| File taxonomy.php.diff, 640 bytes (added by , 17 years ago) |
|---|
-
taxonomy.php
old new 185 185 $args['rewrite'] = array(); 186 186 if ( !isset($args['rewrite']['slug']) ) 187 187 $args['rewrite']['slug'] = sanitize_title_with_dashes($taxonomy); 188 $wp_rewrite->add_rewrite_tag("%$taxonomy%", '([^/]+)', $args['query_var'] ? "{$args['query_var']}=" : "taxonomy=$taxonomy&term= $term");188 $wp_rewrite->add_rewrite_tag("%$taxonomy%", '([^/]+)', $args['query_var'] ? "{$args['query_var']}=" : "taxonomy=$taxonomy&term="); 189 189 $wp_rewrite->add_permastruct($taxonomy, "{$args['rewrite']['slug']}/%$taxonomy%"); 190 190 } 191 191