Ticket #23668: 23668.3.patch
File 23668.3.patch, 725 bytes (added by , 12 years ago) |
---|
-
src/wp-includes/taxonomy.php
352 352 } 353 353 354 354 if ( false !== $args['rewrite'] && ( is_admin() || '' != get_option( 'permalink_structure' ) ) ) { 355 if ( empty( $args['rewrite']['slug'] ) )355 if ( isset( $args['rewrite']['slug'] ) && empty( $args['rewrite']['slug'] ) ) 356 356 $args['rewrite']['slug'] = sanitize_title_with_dashes( $taxonomy ); 357 357 $args['rewrite'] = wp_parse_args( $args['rewrite'], array( 358 'slug' => sanitize_title_with_dashes( $taxonomy ), 358 359 'with_front' => true, 359 360 'hierarchical' => false, 360 361 'ep_mask' => EP_NONE,