Make WordPress Core


Ignore:
Timestamp:
01/23/2012 08:10:01 PM (15 years ago)
Author:
nacin
Message:

Correct logic inversion. #19275.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r19741 r19742  
    3030                                'hierarchical' => true,
    3131                                'slug' => get_option('category_base') ? get_option('category_base') : 'category',
    32                                 'with_front' => get_option('category_base') || $wp_rewrite->using_index_permalinks(),
     32                                'with_front' => ! get_option('category_base') || $wp_rewrite->using_index_permalinks(),
    3333                                'ep_mask' => EP_CATEGORIES,
    3434                        ),
    3535                        'post_tag' => array(
    3636                                'slug' => get_option('tag_base') ? get_option('tag_base') : 'tag',
    37                                 'with_front' => get_option('tag_base') || $wp_rewrite->using_index_permalinks(),
     37                                'with_front' => ! get_option('tag_base') || $wp_rewrite->using_index_permalinks(),
    3838                                'ep_mask' => EP_TAGS,
    3939                        ),
Note: See TracChangeset for help on using the changeset viewer.