Opened 5 years ago
Last modified 5 years ago
#49958 new enhancement
Improve paginator in general-template.php
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | |
Focuses: | template | Cc: |
Description (last modified by )
I would like to add custom classes to the default paginator in the general-template.php
file. For that I would suggest the following change:
<?php $page_links[] = sprintf( '<a class="page-numbers %s" href="%s">%s</a>', /** This filter is documented in wp-includes/general-template.php */ esc_attr( apply_filters( 'paginate_classes' ) ), esc_url( apply_filters( 'paginate_links', $link ) ), $args['before_page_number'] . number_format_i18n( $n ) . $args['after_page_number'] );
That needs to be applied to every page-numbers
element and would be very helpful.
Change History (1)
Note: See
TracTickets for help on using
tickets.