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:
markjaquith 2011-05-02 21:34:33 +00:00
parent c3d51112c2
commit cb077a55ed

View File

@ -36,7 +36,7 @@ function create_initial_taxonomies() {
'query_var' => 'tag', 'query_var' => 'tag',
'rewrite' => did_action( 'init' ) ? array( 'rewrite' => did_action( 'init' ) ? array(
'slug' => get_option('tag_base') ? get_option('tag_base') : 'tag', '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, 'public' => true,
'show_ui' => true, 'show_ui' => true,
'_builtin' => true, '_builtin' => true,