Thread links in WP Multisite Changed

0
1232

The code to show thread links at the bottom of each WordPress story has been modified.

//function to be used in templates to display a link to the XenForo thread
function xenforo_thread_url()
{
global $XF;

if($XF->useXenForoCommentHandler() && isset($XF->post->thread_id) && $XF->post->thread_id != '0')
{
$link = '/community/threads/' . $XF->post->thread_id . '/';
return $link;
}
else
{
return '';
}
}

Instead of $XF->createLink the $link was hard coded to /community/threads/. This makes sure that the domain name is not included in the link.