Make WordPress Core

Ticket #23668: 23668.2.patch

File 23668.2.patch, 648 bytes (added by SergeyBiryukov, 12 years ago)
  • src/wp-includes/taxonomy.php

     
    352352        }
    353353
    354354        if ( false !== $args['rewrite'] && ( is_admin() || '' != get_option( 'permalink_structure' ) ) ) {
     355                if ( empty( $args['rewrite']['slug'] ) )
     356                        $args['rewrite']['slug'] = sanitize_title_with_dashes( $taxonomy );
    355357                $args['rewrite'] = wp_parse_args( $args['rewrite'], array(
    356                         'slug' => sanitize_title_with_dashes( $taxonomy ),
    357358                        'with_front' => true,
    358359                        'hierarchical' => false,
    359360                        'ep_mask' => EP_NONE,