mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Page permalink fixes from josephscott. fixes #5781
git-svn-id: http://svn.automattic.com/wordpress/trunk@6737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8fecb97b09
commit
ab0ea44dc7
@ -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
Block a user