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
This commit is contained in:
ryan 2008-06-16 18:40:47 +00:00
parent 22e486c4f8
commit b2e75c5194

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;