Fix i18n page links. Handle RTL hierarchies.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e9c621df15
commit
66aa2aad8a
|
@ -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