WordPress 2.5添加自定义文件上传类型(允许上传rar文件方法)

修改
wp-includesfunctions.php

wordpress2.1.3默认不支持上传rar文件,修改方法如下:
打开wp-includesfunctions.php,查找

‘zip’ => ‘application/zip’,

(第1106行左右),在这一行的下面加上这一行

‘rar’ => ‘application/rar’,

注意后面有个半角的逗号,别复制漏了,引号是半角单引号。

Leave a Reply

Your email address will not be published. Required fields are marked *