if ( $wp_rewrite->using_permalinks() )
$pagination_links = str_replace( $wp_rewrite->pagination_base . '/1/', '', $pagination_links );
else
$pagination_links = str_replace( '&paged=1', '', $pagination_links );
// Add before and after to pagination links
$pagination_links = $before . $pagination_links . $after;
}
return apply_filters( 'bbp_get_topic_pagination', $pagination_links, $args );
}
/**
* Append revisions to the topic content
*
* @since bbPress (r2782)
*
* @param string $content Optional. Content to which we need to append the revisions to
* @param int $topic_id Optional. Topic id
* @uses bbp_get_topic_revision_log() To get the topic revision log