Make WordPress Core

Ticket #23668: 23668.3.patch

File 23668.3.patch, 725 bytes (added by DrewAPicture, 11 years ago)

isset

  • src/wp-includes/taxonomy.php

     
    352352        }
    353353
    354354        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'] ) )
    356356                        $args['rewrite']['slug'] = sanitize_title_with_dashes( $taxonomy );
    357357                $args['rewrite'] = wp_parse_args( $args['rewrite'], array(
     358                        'slug' => sanitize_title_with_dashes( $taxonomy ),
    358359                        'with_front' => true,
    359360                        'hierarchical' => false,
    360361                        'ep_mask' => EP_NONE,