WordPress.org

Make WordPress Core

Changeset 1841


Ignore:
Timestamp:
11/02/2004 01:56:29 AM (15 years ago)
Author:
rboren
Message:

urldecode page URI so that it will work for multibyte languages.

File:
1 edited

Legend:

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

    r1840 r1841  
    13471347    $page = $wpdb->get_row("SELECT post_name, post_parent FROM $wpdb->posts WHERE ID = '$page'");
    13481348
    1349     $uri = $page->post_name;
     1349    $uri = urldecode($page->post_name);
    13501350
    13511351    while ($page->post_parent != 0) {
    13521352        $page = $wpdb->get_row("SELECT post_name, post_parent FROM $wpdb->posts WHERE ID = '$page->post_parent'");
    1353         $uri = $page->post_name . "/" . $uri;
     1353        $uri = urldecode($page->post_name) . "/" . $uri;
    13541354    }
    13551355
     
    13641364        {
    13651365            foreach ($uris as $uri => $pagename) {
    1366                 $rewrite_rules += array($uri . '/?$' => "index.php?pagename=$pagename");
     1366                            $rewrite_rules += array($uri . '/?$' => "index.php?pagename=" . urldecode($pagename));
    13671367            }
    13681368        }
Note: See TracChangeset for help on using the changeset viewer.