[wp-trac] Re: [WordPress Trac] #6650:
/index.php/%category%/%postname%/ permalink broken in 2.5
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 10 09:17:37 GMT 2008
#6650: /index.php/%category%/%postname%/ permalink broken in 2.5
-----------------------------+----------------------------------------------
Reporter: dlo | Owner: anonymous
Type: defect | Status: new
Priority: highest omg bbq | Milestone: 2.5.1
Component: General | Version: 2.5
Severity: blocker | Resolution:
Keywords: |
-----------------------------+----------------------------------------------
Comment (by dlo):
It looks like I found the solution:
Add a test in '''init()''' function of '''wp-includes/rewrite.php''' to
check if we're using PATHINFO permalinks and thus, generate verbose page
permalinks.
Code snippet:
{{{
if ( 0 === strpos($structure, '%postname%') ||
0 === strpos($structure, '%category%') ||
0 === strpos($structure, '%tag%') ||
0 === strpos($structure, '%author%') ||
$this->using_index_permalinks() )
$this->use_verbose_page_rules = true;
else
$this->use_verbose_page_rules = false;
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/6650#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list