[wp-trac] Re: [WordPress Trac] #7306: Error 404 with /index.php/%postname%/ permalink strucutre

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 15 16:58:16 GMT 2008


#7306: Error 404 with /index.php/%postname%/ permalink strucutre
---------------------+------------------------------------------------------
 Reporter:  aarnet   |        Owner:  anonymous
     Type:  defect   |       Status:  new      
 Priority:  normal   |    Milestone:  2.7      
Component:  General  |      Version:           
 Severity:  normal   |   Resolution:           
 Keywords:           |  
---------------------+------------------------------------------------------
Comment (by Otto42):

 Here's where it got broken, in rewrite.php: [8213]

 If those two options are blank, then that was supposed to me that the
 default values are supposed to be used. In that case, the tag_base and
 category_base would also be blank, and this code down in
 get_tag_permastruct handled the default value case:
 {{{
 if (empty($this->tag_base))
     $this->tag_structure = $this->front . 'tag/';
 else
     $this->tag_structure = $this->tag_base . '/';
 }}}

 By forcing the index.php into the tag and category bases, those values
 will never be blank if you use index.php in your permalink structure. Thus
 breaking permalinks for the default case of blank category/tag bases.

 Adding a simple "category" and "tag" to those bases fixes it as a
 temporary solution, but ideally this code needs to be altered to use the
 default values as well, instead of just whatever get_option returns, which
 can be blank.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7306#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list