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

git-svn-id: https://develop.svn.wordpress.org/trunk@5716 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-06-15 22:11:01 +00:00
parent 55845bb061
commit 6177fec7fa
1 changed files with 1 additions and 1 deletions

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