Changeset 13494 for trunk/wp-includes/post-template.php
- Timestamp:
- 02/28/2010 09:40:42 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r13479 r13494 588 588 } else { 589 589 if ( '' == get_option('permalink_structure') || in_array($post->post_status, array('draft', 'pending')) ) 590 $output .= '<a href="' . get_permalink() . '&page=' . $i . '">'; 590 $output .= '<a href="' . add_query_arg('page', $i, get_permalink()) . '">'; 591 elseif ( 'page' == get_option('show_on_front') && get_option('page_on_front') == $post->ID ) 592 $output .= '<a href="' . trailingslashit(get_permalink()) . user_trailingslashit('page/' . $i, 'single_paged'). '">'; 591 593 else 592 594 $output .= '<a href="' . trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged') . '">'; … … 607 609 if ( $i && $more ) { 608 610 if ( 1 == $i ) { 609 $output .= '<a href="' . get_permalink() . '">' . $link_before. $previouspagelink . $link_after . '</a>';611 $output .= '<a href="' . get_permalink() . '">'; 610 612 } else { 611 613 if ( '' == get_option('permalink_structure') || in_array($post->post_status, array('draft', 'pending')) ) 612 $output .= '<a href="' . get_permalink() . '&page=' . $i . '">' . $link_before. $previouspagelink . $link_after . '</a>'; 614 $output .= '<a href="' . add_query_arg('page', $i, get_permalink()) . '">'; 615 elseif ( 'page' == get_option('show_on_front') && get_option('page_on_front') == $post->ID ) 616 $output .= '<a href="' . trailingslashit(get_permalink()) . user_trailingslashit('page/' . $i, 'single_paged'). '">'; 613 617 else 614 $output .= '<a href="' . trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged') . '">' . $link_before. $previouspagelink . $link_after . '</a>';618 $output .= '<a href="' . trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged') . '">'; 615 619 } 620 $output .= $link_before. $previouspagelink . $link_after . '</a>'; 616 621 } 617 622 $i = $page + 1; 618 623 if ( $i <= $numpages && $more ) { 619 624 if ( 1 == $i ) { 620 $output .= '<a href="' . get_permalink() . '">' . $link_before. $nextpagelink . $link_after . '</a>';625 $output .= '<a href="' . get_permalink() . '">'; 621 626 } else { 622 627 if ( '' == get_option('permalink_structure') || in_array($post->post_status, array('draft', 'pending')) ) 623 $output .= '<a href="' . get_permalink() . '&page=' . $i . '">' . $link_before. $nextpagelink . $link_after . '</a>'; 628 $output .= '<a href="' . add_query_arg('page', $i, get_permalink()) . '">'; 629 elseif ( 'page' == get_option('show_on_front') && get_option('page_on_front') == $post->ID ) 630 $output .= '<a href="' . trailingslashit(get_permalink()) . user_trailingslashit('page/' . $i, 'single_paged'). '">'; 624 631 else 625 $output .= '<a href="' . trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged') . '">' . $link_before. $nextpagelink . $link_after . '</a>';632 $output .= '<a href="' . trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged') . '">'; 626 633 } 634 $output .= $link_before. $nextpagelink . $link_after . '</a>'; 627 635 } 628 636 $output .= $after;
Note: See TracChangeset
for help on using the changeset viewer.