Make sure permalinks for draft pages use query string style since the slug might not be set yet.

git-svn-id: https://develop.svn.wordpress.org/trunk@3708 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-04-15 00:59:40 +00:00
parent 96db8df95e
commit e3e8dfeef4
1 changed files with 1 additions and 1 deletions

View File

@ -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/";