WordPress.org

Make WordPress Core

Changeset 8096


Ignore:
Timestamp:
06/16/2008 06:40:47 PM (10 years ago)
Author:
ryan
Message:

Don't decode slug in get_page_uri(). Props nbachiyski. fixes #6723

File:
1 edited

Legend:

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

    r8081 r8096  
    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.
     
    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
Note: See TracChangeset for help on using the changeset viewer.