WordPress.org

Make WordPress Core

Changeset 16918


Ignore:
Timestamp:
12/14/2010 04:28:16 PM (11 years ago)
Author:
markjaquith
Message:

Add WP Rewrite root to front of add_permastruct() call when adding a taxonomy. fixes #15813

File:
1 edited

Legend:

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

    r16900 r16918  
    330330
    331331        $wp_rewrite->add_rewrite_tag("%$taxonomy%", $tag, $args['query_var'] ? "{$args['query_var']}=" : "taxonomy=$taxonomy&term=");
    332         $wp_rewrite->add_permastruct($taxonomy, "{$args['rewrite']['slug']}/%$taxonomy%", $args['rewrite']['with_front']);
     332        $wp_rewrite->add_permastruct($taxonomy, "{$wp_rewrite->root}{$args['rewrite']['slug']}/%$taxonomy%", $args['rewrite']['with_front']);
    333333    }
    334334
Note: See TracChangeset for help on using the changeset viewer.