Make WordPress Core


Ignore:
Timestamp:
03/10/2011 04:25:40 AM (14 years ago)
Author:
markjaquith
Message:

Correctly handle PATHINFO CPTs and CTs that specify with_front=false. fixes #16807 for 3.1

File:
1 edited

Legend:

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

    r17515 r17519  
    988988            if ( $args->rewrite['with_front'] )
    989989                $archive_slug = substr( $wp_rewrite->front, 1 ) . $archive_slug;
     990            else
     991                $archive_slug = $wp_rewrite->root . $archive_slug;
    990992
    991993            $wp_rewrite->add_rule( "{$archive_slug}/?$", "index.php?post_type=$post_type", 'top' );
Note: See TracChangeset for help on using the changeset viewer.