Make WordPress Core


Ignore:
Timestamp:
06/14/2007 04:24:28 PM (19 years ago)
Author:
markjaquith
Message:

Introducing post_status="pending". see #4446 and put any initial bug reports on that ticket

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r5700 r5707  
    163163                                                $output .= '<a href="' . get_permalink() . '">';
    164164                                        } else {
    165                                                 if ( '' == get_option('permalink_structure') || 'draft' == $post->post_status )
     165                                                if ( '' == get_option('permalink_structure') || in_array($post->post_status, array('draft', 'pending')) )
    166166                                                        $output .= '<a href="' . get_permalink() . '&amp;page=' . $i . '">';
    167167                                                else
     
    182182                                                $output .= '<a href="' . get_permalink() . '">' . $previouspagelink . '</a>';
    183183                                        } else {
    184                                                 if ( '' == get_option('permalink_structure') || 'draft' == $post->post_status )
     184                                                if ( '' == get_option('permalink_structure') || in_array($post->post_status, array('draft', 'pending')) )
    185185                                                        $output .= '<a href="' . get_permalink() . '&amp;page=' . $i . '">' . $previouspagelink . '</a>';
    186186                                                else
     
    193193                                                $output .= '<a href="' . get_permalink() . '">' . $nextpagelink . '</a>';
    194194                                        } else {
    195                                                 if ( '' == get_option('permalink_structure') || 'draft' == $post->post_status )
     195                                                if ( '' == get_option('permalink_structure') || in_array($post->post_status, array('draft', 'pending')) )
    196196                                                        $output .= '<a href="' . get_permalink() . '&amp;page=' . $i . '">' . $nextpagelink . '</a>';
    197197                                                else
Note: See TracChangeset for help on using the changeset viewer.