[wp-trac] [WordPress Trac] #32226: 'get_the_posts_pagination' Filter
WordPress Trac
noreply at wordpress.org
Fri May 1 18:30:35 UTC 2015
#32226: 'get_the_posts_pagination' Filter
-------------------------+------------------------------
Reporter: ixkaito | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version: 4.1
Severity: normal | Resolution:
Keywords: | Focuses: template
-------------------------+------------------------------
Comment (by ixkaito):
I made a typo in the sample code. The correct one is the following.
{{{
function my_get_the_posts_pagination( $navigation, $links, $args ) {
$links = str_replace("\n", '', $links);
if ( $links ) {
$navigation = _navigation_markup( $links, 'pagination',
$args['screen_reader_text'] );
}
return $navigation;
}
add_filter( 'get_the_posts_pagination', 'my_get_the_posts_pagination', 10,
3 );
the_posts_pagination();
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32226#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list