Same problem here. I’ve updated plugins and the theme but the problem with link-template.php is consistent. Every day there is another php files in random folders that sends spam. So, it is obviously something wrong with the base. Does anyone know what type of code should I look there?