Use the presence of manually set tax_base, not category_base, to determine whether tags use with_front to craft URLs. fixes #17308
git-svn-id: https://develop.svn.wordpress.org/trunk@17789 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0d5c2bd393
commit
a957c38eca
@ -36,7 +36,7 @@ function create_initial_taxonomies() {
|
||||
'query_var' => 'tag',
|
||||
'rewrite' => did_action( 'init' ) ? array(
|
||||
'slug' => get_option('tag_base') ? get_option('tag_base') : 'tag',
|
||||
'with_front' => ( get_option('category_base') && ! $wp_rewrite->using_index_permalinks() ) ? false : true ) : false,
|
||||
'with_front' => ( get_option('tag_base') && ! $wp_rewrite->using_index_permalinks() ) ? false : true ) : false,
|
||||
'public' => true,
|
||||
'show_ui' => true,
|
||||
'_builtin' => true,
|
||||
|
Loading…
Reference in New Issue
Block a user