mirror of
git://develop.git.wordpress.org/
synced 2025-02-28 10:33:05 +01:00
Add WP Rewrite root to front of add_permastruct() call when adding a taxonomy. fixes #15813
git-svn-id: https://develop.svn.wordpress.org/trunk@16918 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
640ed590a2
commit
595bc10419
@ -329,7 +329,7 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) {
|
||||
$tag = '([^/]+)';
|
||||
|
||||
$wp_rewrite->add_rewrite_tag("%$taxonomy%", $tag, $args['query_var'] ? "{$args['query_var']}=" : "taxonomy=$taxonomy&term=");
|
||||
$wp_rewrite->add_permastruct($taxonomy, "{$args['rewrite']['slug']}/%$taxonomy%", $args['rewrite']['with_front']);
|
||||
$wp_rewrite->add_permastruct($taxonomy, "{$wp_rewrite->root}{$args['rewrite']['slug']}/%$taxonomy%", $args['rewrite']['with_front']);
|
||||
}
|
||||
|
||||
if ( is_null($args['show_ui']) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user