WordPress.org

Make WordPress Core

Ticket #6723: page-encoded-urls.diff

File page-encoded-urls.diff, 631 bytes (added by nbachiyski, 10 years ago)
  • wp-includes/post.php

     
    18271827 */
    18281828function get_page_uri($page_id) {
    18291829        $page = get_page($page_id);
    1830         $uri = urldecode($page->post_name);
     1830        $uri = $page->post_name;
    18311831
    18321832        // A page cannot be it's own parent.
    18331833        if ( $page->post_parent == $page->ID )
     
    18351835
    18361836        while ($page->post_parent != 0) {
    18371837                $page = get_page($page->post_parent);
    1838                 $uri = urldecode($page->post_name) . "/" . $uri;
     1838                $uri = $page->post_name . "/" . $uri;
    18391839        }
    18401840
    18411841        return $uri;