From b2e75c519464934b87d99349651b631f01ca4799 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 16 Jun 2008 18:40:47 +0000 Subject: [PATCH] Don't decode slug in get_page_uri(). Props nbachiyski. fixes #6723 git-svn-id: http://svn.automattic.com/wordpress/trunk@8096 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 221f84f272..1e0ef4b2fd 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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;