WordPress.org

Make WordPress Core

Changeset 19930


Ignore:
Timestamp:
02/15/12 17:30:37 (4 years ago)
Author:
duck_
Message:

Taxonomy rewrite generation when turning on permalinks, r18443 for taxonomies. Props SergeyBiryukov. Fixes #19794.

File:
1 edited

Legend:

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

    r19876 r19930  
    331331    } 
    332332 
    333     if ( false !== $args['rewrite'] && '' != get_option('permalink_structure') ) { 
     333    if ( false !== $args['rewrite'] && ( is_admin() || '' != get_option('permalink_structure') ) ) { 
    334334        $args['rewrite'] = wp_parse_args($args['rewrite'], array( 
    335335            'slug' => sanitize_title_with_dashes($taxonomy), 
Note: See TracChangeset for help on using the changeset viewer.