[Plugin: Warcraft News] Wowhead Item Links Not Working
-
It appears wowhead might have changed the item links. I have made the following change and it appears to be working fine.
Find this line of code in warcraft-news.php:
$link->href = str_replace($base_url ."/wow/". $lang ."/item/", "http://$lang.wowhead.com/item=", $link->href);
Change it to this:
$link->href = str_replace($base_url ."/wow/". $lang ."/item/", "http://wowhead.com/item=", $link->href);
The links will work again!
I am also going through and making it so the links wowhead and wow directly will open in a new window. That is just a personal preference though.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: Warcraft News] Wowhead Item Links Not Working’ is closed to new replies.