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

git-svn-id: https://develop.svn.wordpress.org/trunk@8096 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-06-16 18:40:47 +00:00
parent 8712abb23c
commit 8ef3dea136

View File

@ -1827,7 +1827,7 @@ function get_page_hierarchy($posts, $parent = 0) {
*/
function get_page_uri($page_id) {
$page = get_page($page_id);
$uri = urldecode($page->post_name);
$uri = $page->post_name;
// A page cannot be it's own parent.
if ( $page->post_parent == $page->ID )
@ -1835,7 +1835,7 @@ function get_page_uri($page_id) {
while ($page->post_parent != 0) {
$page = get_page($page->post_parent);
$uri = urldecode($page->post_name) . "/" . $uri;
$uri = $page->post_name . "/" . $uri;
}
return $uri;