root_domain . '/' . $bp->forums->slug . '/tag/' . $tag . '/' );
}
add_filter( 'bb_get_tag_link', 'bp_forums_filter_tag_link', 10, 4);
function bp_forums_make_nofollow_filter( $text ) {
return preg_replace_callback( '||i', 'bp_forums_make_nofollow_filter_callback', $text );
}
function bp_forums_make_nofollow_filter_callback( $matches ) {
$text = $matches[1];
$text = str_replace( array( ' rel="nofollow"', " rel='nofollow'"), '', $text );
return "";
}
/**
* bp_forums_add_forum_topic_to_page_title( $title )
*
* Append forum topic to page title
*
* @global object $bp
* @param string $title
* @return string
*/
function bp_forums_add_forum_topic_to_page_title( $title ) {
global $bp;
if ( $bp->current_action == 'forum' && $bp->action_variables[0] == 'topic' ) {
if ( bp_has_forum_topic_posts() ) {
$title .= ' | ' . bp_get_the_topic_title();
}
}
return $title;
}
add_filter( 'bp_page_title', 'bp_forums_add_forum_topic_to_page_title' );
?>