Make WordPress Core

Changeset 2191


Ignore:
Timestamp:
02/01/2005 08:35:45 AM (20 years ago)
Author:
rboren
Message:

Fix i18n page links. Handle RTL hierarchies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r2190 r2191  
    300300            $where .= " AND post_name = '" . $q['name'] . "'";
    301301        } else if ('' != $q['pagename']) {
    302             $q['pagename'] = sanitize_title(basename($q['pagename']));
     302            $q['pagename'] = sanitize_title(basename(str_replace('%2F', '/', urlencode($q['pagename']))));
    303303            $q['name'] = $q['pagename'];
    304304            $where .= " AND post_name = '" . $q['pagename'] . "'";
Note: See TracChangeset for help on using the changeset viewer.