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:
ryan 2006-04-15 00:59:40 +00:00
parent c32db269eb
commit 15248a593b
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/";