[wp-trac] [WordPress Trac] #10249: Page slug in cyrillic = Error 404 - Not Found!
WordPress Trac
wp-trac at lists.automattic.com
Thu May 27 13:41:33 UTC 2010
#10249: Page slug in cyrillic = Error 404 - Not Found!
--------------------------+-------------------------------------------------
Reporter: kalifi | Owner: ryan
Type: defect (bug) | Status: reopened
Priority: high | Milestone:
Component: Permalinks | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+-------------------------------------------------
Comment(by Ragnaripea):
Ok, we managed to find a "solution" for it. I'm not sure if this is the
proper way to do it and it might mess up some other stuff but for what we
needed it, it's working.
In query.php (/wp-includes), add the piece of code specified on next line
after
{{{
function parse_query($query) {
}}}
It's (in 3.0 beta 2) on line 1246.
The code that did the job:
{{{
if ( !$query['name'] && !$query['pagename'] && $query['category_name']) {
$query['pagename']=$query['category_name'];
}
}}}
I'm no programmer and I really have no idea what's the magic behind it but
it's working. Working as in you can use cyrillic (most probably all other
non-latin alphabets, too) slugs perfectly both on posts and pages with the
/%postname% /%category%/%postname% permalinks (we're using the last one).
No /%year% is needed to make it work.
Smart guys out here probably know what's going on when looking at this
code, so they can either improve it or if it's known to cause some issues,
tell us here that it's not working and shouldn't be used.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10249#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list