59.8 F
Los Angeles
Sunday, June 4, 2023

ASUS Announces 2023 Vivobook Classic Series

On April 7, 2023, ASUS introduced five new models in the 2023 Vivobook Classic series of laptops. The top laptops in the series use the 13th Gen Intel® Core™...

Airman Arrested In Case of Leaked Classified Documents

Massachusetts Air National Guardsman Jack Teixeira has been arrested in the latest case of leaked classified documents. Teixeira, 21, is the head of Thug Shaker Central, an online gaming...

Microsoft OneNote to Gain Copilot

Microsoft 365 Copilot is coming to OneNote.
StaffThread links in WP Multisite Changed

Thread links in WP Multisite Changed

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.

Latest news

Related news