今天想上传个文件,是.torrent后缀的。。就是种子,为什么要上传,咱就不说了。。。wordpress本身是不支持上传.torrent文件的,不过我们可以用代码。
不知道有没有插件支持.torrent文件的,我也懒得找了。反正不用插件就尽量不用插件吧。我之前的博客也改过代码,但是现在换了个新博客,之前没有用到,也没有修改。

找到wp-includes/functions.php文件,
查找:'zip' => 'application/zip'
在下面一行输入 'torrent' => 'application/torrent'

44

然后保存下就行了。
但是以后你博客要是更新的话,还要再去改改代码。
虽然有点麻烦、不过相对还是比较安全的。