<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>138</title>
	<atom:link href="http://138.chez.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://138.chez.com</link>
	<description>又一个 WordPress 站点</description>
	<lastBuildDate>Tue, 16 Apr 2013 05:24:36 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>如何增加WordPress上传文件类型</title>
		<link>http://138.chez.com/?p=1</link>
		<comments>http://138.chez.com/?p=1#comments</comments>
		<pubDate>Tue, 16 Apr 2013 05:19:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://138.chez.com/?p=1</guid>
		<description><![CDATA[WordPress默认的上传文件类型只有图片、视频、音频、其他媒体。但是如果我们想分享一些其他的文件比如文档等 [...]]]></description>
				<content:encoded><![CDATA[<p>WordPress默认的上传文件类型只有图片、视频、音频、其他媒体。但是如果我们想分享一些其他的文件比如文档等怎么办呢？其实Wordpress其充满魅力的所在就在于开源，开源的好处是随时可以增加你想要的东西。下面就以增加一个.rar类型为例来说明如何增加Wordpress上传文件类型！<br />
修改 wp-includes/functions.php</p>
<p>查找：<br />
function wp_check_filetype($filename, $mimes = null) {</p>
<p>在底下的$mimes里加入要添加的文件类型，例如 rar ：<br />
‘rar’ =&gt; ‘application/rar’,<br />
保存，重新上传服务器，一切就OK了，很简单吧！</p>
]]></content:encoded>
			<wfw:commentRss>http://138.chez.com/?feed=rss2&#038;p=1</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
