Make sure permalinks for draft pages use query string style since the slug might not be set yet.
git-svn-id: http://svn.automattic.com/wordpress/trunk@3708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c32db269eb
commit
15248a593b
|
@ -92,7 +92,7 @@ function get_page_link($id = false) {
|
|||
|
||||
$pagestruct = $wp_rewrite->get_page_permastruct();
|
||||
|
||||
if ( '' != $pagestruct ) {
|
||||
if ( '' != $pagestruct && 'draft' != $post->post_status ) {
|
||||
$link = get_page_uri($id);
|
||||
$link = str_replace('%pagename%', $link, $pagestruct);
|
||||
$link = get_settings('home') . "/$link/";
|
||||
|
|
Loading…
Reference in New Issue