mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +01:00
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: http://svn.automattic.com/wordpress/trunk@17789 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c3d51112c2
commit
cb077a55ed
@ -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