Don't use permalinks for pending posts. see #4446

git-svn-id: http://svn.automattic.com/wordpress/trunk@5716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-06-15 22:11:01 +00:00
parent 404e50bfb3
commit 64d3a54b85

View File

@ -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 = '';