Definition:
function get_previous_comments_link( $label = '' ) {}
Return the previous comments page link.
Parameters
- string $label: Optional. Label for comments link text.
Defined filters
- previous_comments_link_attributes
apply_filters( 'previous_comments_link_attributes', '' )
Source code
function get_previous_comments_link( $label = '' ) {
if ( !is_singular() || !get_option('page_comments') )
return;
$page = get_query_var('cpage');
if ( intval($page) <= 1 )
return;
$prevpage = intval($page) - 1;
if ( empty($label) )
$label = __('« Older Comments');
return '<a href="' . esc_url( get_comments_pagenum_link( $prevpage ) ) . '" ' . apply_filters( 'previous_comments_link_attributes', '' ) . '>' . preg_replace('/&([^#])(?![a-z]{1,8};)/i', '&$1', $label) .'</a>';
}
1638

February 12, 2011 


No comments yet... Be the first to leave a reply!