WordPress.org

Make WordPress Core

Changeset 13050


Ignore:
Timestamp:
02/10/2010 09:57:25 PM (12 years ago)
Author:
ryan
Message:

Remove leading slash so that it doesn't get doubled when front is added. see #9674

File:
1 edited

Legend:

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

    r13049 r13050  
    802802            $args->rewrite['with_front'] = true;
    803803        $wp_rewrite->add_rewrite_tag("%$post_type%", '([^/]+)', $args->query_var ? "{$args->query_var}=" : "post_type=$post_type&name=");
    804         $wp_rewrite->add_permastruct($post_type, "/{$args->rewrite['slug']}/%$post_type%", $args->rewrite['with_front']);
     804        $wp_rewrite->add_permastruct($post_type, "{$args->rewrite['slug']}/%$post_type%", $args->rewrite['with_front']);
    805805    }
    806806
Note: See TracChangeset for help on using the changeset viewer.