Make WordPress Core


Ignore:
Timestamp:
08/11/2008 08:17:07 PM (18 years ago)
Author:
markjaquith
Message:

Do not prepend /archives/ et al to category/tag URLs unless category/tag slug is missing. fixes #7490 for trunk

File:
1 edited

Legend:

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

    r8600 r8616  
    448448
    449449                if (empty($this->category_base))
    450                         $this->category_base = 'category';
    451                 $this->category_structure = trailingslashit( $this->front . $this->category_base );
     450                        $this->category_structure = trailingslashit( $this->front . 'category' );
     451                else
     452                        $this->category_structure = trailingslashit( '/' . $this->root . $this->category_base );
    452453
    453454                $this->category_structure .= '%category%';
    … …  
    467468
    468469                if (empty($this->tag_base))
    469                         $this->tag_base = 'tag';
    470                 $this->tag_structure = trailingslashit( $this->front . $this->tag_base );
     470                        $this->tag_structure = trailingslashit( $this->front . 'tag' );
     471                else
     472                        $this->tag_structure = trailingslashit( '/' . $this->root . $this->tag_base );
    471473
    472474                $this->tag_structure .= '%tag%';
Note: See TracChangeset for help on using the changeset viewer.