From 64d3a54b85793a7f74e9324b2988248e5d508efb Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 15 Jun 2007 22:11:01 +0000 Subject: [PATCH] Don't use permalinks for pending posts. see #4446 git-svn-id: http://svn.automattic.com/wordpress/trunk@5716 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 20c55c264..431b2a1f1 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -67,7 +67,7 @@ function get_permalink($id = 0) { $permalink = get_option('permalink_structure'); - if ( '' != $permalink && 'draft' != $post->post_status ) { + if ( '' != $permalink && !in_array($post->post_status, array('draft', 'pending')) ) { $unixtime = strtotime($post->post_date); $category = '';