WordPress.org

Make WordPress Core

Changeset 17789


Ignore:
Timestamp:
05/02/11 21:34:33 (3 years ago)
Author:
markjaquith
Message:

Use the presence of manually set tax_base, not category_base, to determine whether tags use with_front to craft URLs. fixes #17308

File:
1 edited

Legend:

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

    r17688 r17789  
    3737        'rewrite' => did_action( 'init' ) ? array( 
    3838                    'slug' => get_option('tag_base') ? get_option('tag_base') : 'tag', 
    39                     'with_front' => ( get_option('category_base') && ! $wp_rewrite->using_index_permalinks() ) ? false : true ) : false, 
     39                    'with_front' => ( get_option('tag_base') && ! $wp_rewrite->using_index_permalinks() ) ? false : true ) : false, 
    4040        'public' => true, 
    4141        'show_ui' => true, 
Note: See TracChangeset for help on using the changeset viewer.