Fix i18n page links. Handle RTL hierarchies.
git-svn-id: https://develop.svn.wordpress.org/trunk@2191 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c336926a96
commit
5fc031ad98
@ -299,7 +299,7 @@ class WP_Query {
|
||||
$q['name'] = sanitize_title($q['name']);
|
||||
$where .= " AND post_name = '" . $q['name'] . "'";
|
||||
} else if ('' != $q['pagename']) {
|
||||
$q['pagename'] = sanitize_title(basename($q['pagename']));
|
||||
$q['pagename'] = sanitize_title(basename(str_replace('%2F', '/', urlencode($q['pagename']))));
|
||||
$q['name'] = $q['pagename'];
|
||||
$where .= " AND post_name = '" . $q['pagename'] . "'";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user