[wp-trac] [WordPress Trac] #46250: smaller fonts for page navigation in admin in 5.1
WordPress Trac
noreply at wordpress.org
Thu Feb 14 14:19:58 UTC 2019
#46250: smaller fonts for page navigation in admin in 5.1
----------------------------+-----------------------
Reporter: joneiseman | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+-----------------------
Changes (by joneiseman):
* status: closed => reopened
* resolution: duplicate =>
Comment:
This really isn't a plugin problem. The plugins use the function
paginate_links and paginate_links doesn't display these arrows correctly.
It needs to add the "button" class to the arrows to get it to work
properly in WordPress 5.1.
Here's the change that fixes the problem:
{{{
adapti24 at usm90 # diff general-template.php*
3934c3934
< $page_links[] = '<a class="prev page-numbers button"
href="' . esc_url( apply_filters( 'paginate_links', $link ) ) . '">' .
$args['prev_text'] . '</a>';
---
> $page_links[] = '<a class="prev page-numbers" href="' .
esc_url( apply_filters( 'paginate_links', $link ) ) . '">' .
$args['prev_text'] . '</a>';
3967c3967
< $page_links[] = '<a class="next page-numbers button"
href="' . esc_url( apply_filters( 'paginate_links', $link ) ) . '">' .
$args['next_text'] . '</a>';
---
> $page_links[] = '<a class="next page-numbers" href="' .
esc_url( apply_filters( 'paginate_links', $link ) ) . '">' .
$args['next_text'] . '</a>';
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46250#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list