From 7425349d76acca2492fc9ef9f21d9e744550b786 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 20 Nov 2009 17:47:25 +0000 Subject: [PATCH] Fix preview of pending pages with permalinks on. Props dj-wp. fixes #11199 git-svn-id: https://develop.svn.wordpress.org/trunk@12245 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/link-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index d042b94bd8..6c0a7dda7e 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -222,7 +222,7 @@ function _get_page_link( $id = false, $leavename = false, $sample = false ) { $pagestruct = $wp_rewrite->get_page_permastruct(); - if ( '' != $pagestruct && ( ( isset($post->post_status) && 'draft' != $post->post_status ) || $sample ) ) { + if ( '' != $pagestruct && ( ( isset($post->post_status) && 'draft' != $post->post_status && 'pending' != $post->post_status ) || $sample ) ) { $link = get_page_uri($id); $link = ( $leavename ) ? $pagestruct : str_replace('%pagename%', $link, $pagestruct); $link = trailingslashit(get_option('home')) . "$link";