Make WordPress Core

Changeset 5716


Ignore:
Timestamp:
06/15/2007 10:11:01 PM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.