WordPress.org

Make WordPress Core

Ticket #10445: taxonomy.php.diff

File taxonomy.php.diff, 640 bytes (added by sirzooro, 6 years ago)
  • taxonomy.php

    old new  
    185185                        $args['rewrite'] = array(); 
    186186                if ( !isset($args['rewrite']['slug']) ) 
    187187                        $args['rewrite']['slug'] = sanitize_title_with_dashes($taxonomy); 
    188                 $wp_rewrite->add_rewrite_tag("%$taxonomy%", '([^/]+)', $args['query_var'] ? "{$args['query_var']}=" : "taxonomy=$taxonomy&term=$term"); 
     188                $wp_rewrite->add_rewrite_tag("%$taxonomy%", '([^/]+)', $args['query_var'] ? "{$args['query_var']}=" : "taxonomy=$taxonomy&term="); 
    189189                $wp_rewrite->add_permastruct($taxonomy, "{$args['rewrite']['slug']}/%$taxonomy%"); 
    190190        } 
    191191