[wp-trac] [WordPress Trac] #12897: page is treated as category when premalink are set to %category%
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 7 15:36:03 UTC 2010
#12897: page is treated as category when premalink are set to %category%
--------------------------+-------------------------------------------------
Reporter: liorsion | Owner: ryan
Type: defect (bug) | Status: new
Priority: high | Milestone: 2.9.3
Component: Permalinks | Version:
Severity: major | Keywords:
--------------------------+-------------------------------------------------
If I set my premalinks to %category%/%whatever%/ and I'm not using english
(tested in Hebrew), all pages (that are also in Hebrew) are getting 404
not found since they are treated as categories and not pages - effectively
rendering the %category% permalink impossible to use.
The bug lies in classes.php line 172:
$req_uri = str_replace($pathinfo, '', rawurldecode($req_uri));
the rawurldecode should be removed.
I didn't want to actively fix it to avoid issues I might not be aware of..
please pay attention before removing this.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12897>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list