Ticket #12508: 12508.diff
| File 12508.diff, 1.1 KB (added by , 17 years ago) |
|---|
-
wp-includes/taxonomy.php
233 261 } 234 262 235 263 if ( false !== $args['rewrite'] && '' != get_option('permalink_structure') ) { 236 if ( !is_array($args['rewrite']) ) 237 $args['rewrite'] = array(); 238 if ( !isset($args['rewrite']['slug']) ) 239 $args['rewrite']['slug'] = sanitize_title_with_dashes($taxonomy); 240 if ( !isset($args['rewrite']['with_front']) ) 241 $args['rewrite']['with_front'] = true; 264 $args['rewrite'] = wp_parse_args($args['rewrite'], array( 265 'slug' => sanitize_title_with_dashes($taxonomy), 266 'with_front' => true, 267 )); 242 268 $wp_rewrite->add_rewrite_tag("%$taxonomy%", '([^/]+)', $args['query_var'] ? "{$args['query_var']}=" : "taxonomy=$taxonomy&term=$term"); 243 $wp_rewrite->add_permastruct($taxonomy, " /{$args['rewrite']['slug']}/%$taxonomy%", $args['rewrite']['with_front']);269 $wp_rewrite->add_permastruct($taxonomy, "{$args['rewrite']['slug']}/%$taxonomy%", $args['rewrite']['with_front']); 244 270 } 245 271 246 272 if ( is_null($args['show_ui']) )
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)