From e3e8dfeef40e44000802d376170e7ac016f51678 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 15 Apr 2006 00:59:40 +0000 Subject: [PATCH] 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 --- wp-includes/template-functions-links.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/template-functions-links.php b/wp-includes/template-functions-links.php index 22a2e0777a..6ea29850f4 100644 --- a/wp-includes/template-functions-links.php +++ b/wp-includes/template-functions-links.php @@ -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/";