Ticket #24705: post-template.php.wp_link_pages.patch
File post-template.php.wp_link_pages.patch, 687 bytes (added by , 7 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 } else { 667 $link = '<span class="current-page-link"' . $link . '</span>'; 668 } 666 669 $link = apply_filters( 'wp_link_pages_link', $link, $i ); 667 670 $output .= $separator . $link; 668 671 }