Ticket #3163: post-template.php.diff
| File post-template.php.diff, 989 bytes (added by activeingredient, 6 years ago) |
|---|
-
post-template.php
173 173 if ( '' == get_option('permalink_structure') ) 174 174 $output .= '<a href="' . get_permalink() . '&page=' . $i . '">'.$previouspagelink.'</a>'; 175 175 else 176 $output .= '<a href="' . get_permalink() . $i . '/">'.$previouspagelink.'</a>';176 $output .= '<a href="' . trailingslashit( get_permalink() ) . $i . '/">'.$previouspagelink.'</a>'; 177 177 } 178 178 $i = $page + 1; 179 179 if ( $i <= $numpages && $more ) { 180 180 if ( '' == get_option('permalink_structure') ) 181 181 $output .= '<a href="'.get_permalink() . '&page=' . $i . '">'.$nextpagelink.'</a>'; 182 182 else 183 $output .= '<a href="'. get_permalink().$i.'/">'.$nextpagelink.'</a>';183 $output .= '<a href="'.trailingslashit( get_permalink() ).$i.'/">'.$nextpagelink.'</a>'; 184 184 } 185 185 $output .= $after; 186 186 }
