Ticket #24705: post-template.diff
File post-template.diff, 943 bytes (added by , 11 years ago) |
---|
-
post-template.php
661 661 $output .= $before; 662 662 for ( $i = 1; $i <= $numpages; $i++ ) { 663 663 $link = $link_before . str_replace( '%', $i, $pagelink ) . $link_after; 664 if ( $i != $page || ! $more && 1 == $page ) 664 if ( $i != $page || ! $more && 1 == $page ) { 665 665 $link = _wp_link_page( $i ) . $link . '</a>'; 666 } 667 else { 668 $link = '<span class="page-numbers current"' . $link . '</span>'; 669 } 666 670 $link = apply_filters( 'wp_link_pages_link', $link, $i ); 667 671 $output .= $separator . $link; 668 672 } … … 717 721 $url = trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged'); 718 722 } 719 723 720 return '<a href="' . esc_url( $url ) . '">';724 return '<a class="page-numbers" href="' . esc_url( $url ) . '">'; 721 725 } 722 726 723 727 //