Changeset 5242
- Timestamp:
- 04/11/2007 04:52:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r5241 r5242 132 132 133 133 function wp_link_pages($args = '') { 134 global $post; 135 134 136 if ( is_array($args) ) 135 137 $r = &$args; … … 159 161 $output .= '<a href="' . get_permalink() . '">'; 160 162 } else { 161 if ( '' == get_option('permalink_structure') )163 if ( '' == get_option('permalink_structure') || 'draft' == $post->post_status ) 162 164 $output .= '<a href="' . get_permalink() . '&page=' . $i . '">'; 163 165 else … … 178 180 $output .= '<a href="' . get_permalink() . '">' . $previouspagelink . '</a>'; 179 181 } else { 180 if ( '' == get_option('permalink_structure') )182 if ( '' == get_option('permalink_structure') || 'draft' == $post->post_status ) 181 183 $output .= '<a href="' . get_permalink() . '&page=' . $i . '">' . $previouspagelink . '</a>'; 182 184 else … … 189 191 $output .= '<a href="' . get_permalink() . '">' . $nextpagelink . '</a>'; 190 192 } else { 191 if ( '' == get_option('permalink_structure') )193 if ( '' == get_option('permalink_structure') || 'draft' == $post->post_status ) 192 194 $output .= '<a href="' . get_permalink() . '&page=' . $i . '">' . $nextpagelink . '</a>'; 193 195 else
Note: See TracChangeset
for help on using the changeset viewer.