Ticket #14449: add_permastruct_filter.patch
File add_permastruct_filter.patch, 692 bytes (added by , 15 years ago) |
---|
-
taxonomy.php
287 287 'with_front' => true, 288 288 )); 289 289 $wp_rewrite->add_rewrite_tag("%$taxonomy%", '([^/]+)', $args['query_var'] ? "{$args['query_var']}=" : "taxonomy=$taxonomy&term="); 290 $wp_rewrite->add_permastruct($taxonomy, "{$args['rewrite']['slug']}/%$taxonomy%", $args['rewrite']['with_front']);290 $wp_rewrite->add_permastruct($taxonomy, apply_filters( 'register_taxonomy_permastruct', "{$args['rewrite']['slug']}/%$taxonomy%", $taxonomy, $args ) , $args['rewrite']['with_front']); 291 291 } 292 292 293 293 if ( is_null($args['show_ui']) )