Correct logic inversion. #19275.

git-svn-id: https://develop.svn.wordpress.org/trunk@19742 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-01-23 20:10:01 +00:00
parent 7140ded1cc
commit 28cfc3cd49
1 changed files with 2 additions and 2 deletions

View File

@ -29,12 +29,12 @@ function create_initial_taxonomies() {
'category' => array(
'hierarchical' => true,
'slug' => get_option('category_base') ? get_option('category_base') : 'category',
'with_front' => get_option('category_base') || $wp_rewrite->using_index_permalinks(),
'with_front' => ! get_option('category_base') || $wp_rewrite->using_index_permalinks(),
'ep_mask' => EP_CATEGORIES,
),
'post_tag' => array(
'slug' => get_option('tag_base') ? get_option('tag_base') : 'tag',
'with_front' => get_option('tag_base') || $wp_rewrite->using_index_permalinks(),
'with_front' => ! get_option('tag_base') || $wp_rewrite->using_index_permalinks(),
'ep_mask' => EP_TAGS,
),
'post_format' => $post_format_base ? array( 'slug' => $post_format_base ) : false,