Page permalink fixes from josephscott. fixes #5781
git-svn-id: https://develop.svn.wordpress.org/trunk@6737 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ce5b15209f
commit
69e33afad3
|
@ -139,6 +139,8 @@ function _get_page_link( $id = false ) {
|
|||
|
||||
if ( !$id )
|
||||
$id = (int) $post->ID;
|
||||
else
|
||||
$post = &get_post($id);
|
||||
|
||||
$pagestruct = $wp_rewrite->get_page_permastruct();
|
||||
|
||||
|
|
Loading…
Reference in New Issue