Make WordPress Core

Ticket #14449: add_permastruct_filter.patch

File add_permastruct_filter.patch, 692 bytes (added by wjm, 15 years ago)
  • taxonomy.php

     
    287287                        'with_front' => true,
    288288                ));
    289289                $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']);
    291291        }
    292292
    293293        if ( is_null($args['show_ui']) )