Ticket #6723: page-encoded-urls.diff
| File page-encoded-urls.diff, 631 bytes (added by nbachiyski, 4 years ago) |
|---|
-
wp-includes/post.php
1827 1827 */ 1828 1828 function get_page_uri($page_id) { 1829 1829 $page = get_page($page_id); 1830 $uri = urldecode($page->post_name);1830 $uri = $page->post_name; 1831 1831 1832 1832 // A page cannot be it's own parent. 1833 1833 if ( $page->post_parent == $page->ID ) … … 1835 1835 1836 1836 while ($page->post_parent != 0) { 1837 1837 $page = get_page($page->post_parent); 1838 $uri = urldecode($page->post_name). "/" . $uri;1838 $uri = $page->post_name . "/" . $uri; 1839 1839 } 1840 1840 1841 1841 return $uri;
