| 3 | | Then it force the usage of a class to wrap the numbers, as {{{wp_link_pages()}}} does. I am not a big fun of the solution {{{ str_replace( '<a href="', '<a class="page-number" href="', $link ); }}}, however it's the only way that I see for now with the current structure of the function. It would be very nice to improve consistency between {{{paginate_links()}}} and {{{wp_link_pages()}}} because they use parameters and CSS class positions/names in a quite different way, despite they do basically the same thing. |
| | 3 | Then it forces the usage of a class to wrap the numbers, as {{{wp_link_pages()}}} does. I am not a big fun of the solution {{{ str_replace( '<a href="', '<a class="page-number" href="', $link ); }}}, however it's the only way that I see for now with the current structure of the function. It would be very nice to improve consistency between {{{paginate_links()}}} and {{{wp_link_pages()}}} because they use parameters and CSS class positions/names in a quite different way, despite they do basically the same thing. |