Make WordPress Core


Ignore:
Timestamp:
03/17/2010 04:27:25 PM (16 years ago)
Author:
ryan
Message:

Trim trailing whitespace

File:
1 edited

Legend:

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

    r13704 r13733  
    161161function is_taxonomy( $taxonomy ) {
    162162    global $wp_taxonomies;
    163        
     163
    164164    return isset($wp_taxonomies[$taxonomy]);
    165165}
     
    262262
    263263    if ( false !== $args['rewrite'] && '' != get_option('permalink_structure') ) {
    264         $args['rewrite'] = wp_parse_args($args['rewrite'], array( 
    265             'slug' => sanitize_title_with_dashes($taxonomy), 
    266             'with_front' => true, 
    267         )); 
    268         $wp_rewrite->add_rewrite_tag("%$taxonomy%", '([^/]+)', $args['query_var'] ? "{$args['query_var']}=" : "taxonomy=$taxonomy&term="); 
    269         $wp_rewrite->add_permastruct($taxonomy, "{$args['rewrite']['slug']}/%$taxonomy%", $args['rewrite']['with_front']); 
     264        $args['rewrite'] = wp_parse_args($args['rewrite'], array(
     265            'slug' => sanitize_title_with_dashes($taxonomy),
     266            'with_front' => true,
     267        ));
     268        $wp_rewrite->add_rewrite_tag("%$taxonomy%", '([^/]+)', $args['query_var'] ? "{$args['query_var']}=" : "taxonomy=$taxonomy&term=");
     269        $wp_rewrite->add_permastruct($taxonomy, "{$args['rewrite']['slug']}/%$taxonomy%", $args['rewrite']['with_front']);
    270270    }
    271271
Note: See TracChangeset for help on using the changeset viewer.