Changeset 5716

Show
Ignore:
Timestamp:
06/15/07 22:11:01 (1 year ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/link-template.php

    r5700 r5716  
    6868    $permalink = get_option('permalink_structure'); 
    6969 
    70     if ( '' != $permalink && 'draft' != $post->post_status ) { 
     70    if ( '' != $permalink && !in_array($post->post_status, array('draft', 'pending')) ) { 
    7171        $unixtime = strtotime($post->post_date); 
    7272