WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/10/2011 04:25:40 AM (9 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/link-template.php

    r17228 r17519  
    848848        if ( $post_type_obj->rewrite['with_front'] )
    849849            $struct = $wp_rewrite->front . $struct;
     850        else
     851            $struct = $wp_rewrite->root . $struct;
    850852        $link = home_url( user_trailingslashit( $struct, 'post_type_archive' ) );
    851853    } else {
Note: See TracChangeset for help on using the changeset viewer.