Ticket #7490: 7490_trunk.diff

File 7490_trunk.diff, 1.2 KB (added by markjaquith, 4 years ago)

Patch for 2.7 (trunk)

  • wp-includes/version.php

     
    1515 * 
    1616 * @global int $wp_db_version 
    1717 */ 
    18 $wp_db_version = 8585; 
     18$wp_db_version = 8586; 
    1919 
    2020?> 
  • wp-includes/rewrite.php

     
    447447                } 
    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%'; 
    454455 
     
    466467                } 
    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%'; 
    473475