Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1/wp-includes/post.php

    r17430 r17519  
    986986        if ( $args->has_archive ) {
    987987            $archive_slug = $args->has_archive === true ? $args->rewrite['slug'] : $args->has_archive;
     988            if ( $args->rewrite['with_front'] )
     989                $archive_slug = substr( $wp_rewrite->front, 1 ) . $archive_slug;
     990            else
     991                $archive_slug = $wp_rewrite->root . $archive_slug;
     992
    988993            $wp_rewrite->add_rule( "{$archive_slug}/?$", "index.php?post_type=$post_type", 'top' );
    989994            if ( $args->rewrite['feeds'] && $wp_rewrite->feeds ) {
Note: See TracChangeset for help on using the changeset viewer.