<?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>阿乐的博客 &#187; 2009 &#187; 九月</title>
	<atom:link href="http://ale.net.cn/blog/2009/09/feed/" rel="self" type="application/rss+xml" />
	<link>http://ale.net.cn/blog</link>
	<description>没有句号的梦想</description>
	<lastBuildDate>Thu, 26 Aug 2010 15:15:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>完全手动禁止Wordpress修订功能</title>
		<link>http://ale.net.cn/blog/2009/09/%e5%ae%8c%e5%85%a8%e6%89%8b%e5%8a%a8%e7%a6%81%e6%ad%a2wordpress%e4%bf%ae%e8%ae%a2%e5%8a%9f%e8%83%bd/</link>
		<comments>http://ale.net.cn/blog/2009/09/%e5%ae%8c%e5%85%a8%e6%89%8b%e5%8a%a8%e7%a6%81%e6%ad%a2wordpress%e4%bf%ae%e8%ae%a2%e5%8a%9f%e8%83%bd/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 08:11:33 +0000</pubDate>
		<dc:creator>ale</dc:creator>
				<category><![CDATA[程序]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://ale.net.cn/blog/2009/09/%e5%ae%8c%e5%85%a8%e6%89%8b%e5%8a%a8%e7%a6%81%e6%ad%a2wordpress%e4%bf%ae%e8%ae%a2%e5%8a%9f%e8%83%bd/</guid>
		<description><![CDATA[去除Wordpress的修订历史功能。整个过程需要通过修改Wordpress的两个文件来实现：
1，打开 &#8216;wp-includes\default-filters.php&#8217; 文件，找到以下代码：
add_action( &#8216;pre_post_update&#8217;, &#8216;wp_save_post_revision&#8217; );

这段语句主要是在每次更新文章时，调用&#8217;pre_post_update&#8217; 这个函数，来创建修订版，所以在这段语句前添加 &#8216;//&#8217;将其转为注释，这样就可以安静了。
//add_action( &#8216;pre_post_update&#8217;, &#8216;wp_save_post_revision&#8217; );

但这样做还不完全，我们需要第二步修改，来完全的禁止修订功能。
2，打开 ‘wp-admin\includes\post.php’ 文件，找到以下代码：
return _wp_put_post_revision( $_POST, true );

修改为：
return edit_post();

这样以后每次在修改已发布文章时，就不再会出现修订版了。
有兴趣的朋友不妨试试，很不错的。不过缺点就是，每次升级Wordpress都需要重新修改，有点小麻烦。
]]></description>
			<content:encoded><![CDATA[<p>去除Wordpress的修订历史功能。整个过程需要通过修改Wordpress的两个文件来实现：</p>
<p>1，打开 &#8216;wp-includes\default-filters.php&#8217; 文件，找到以下代码：</p>
<blockquote><p>add_action( &#8216;pre_post_update&#8217;, &#8216;wp_save_post_revision&#8217; );</p>
</blockquote>
<p>这段语句主要是在每次更新文章时，调用&#8217;pre_post_update&#8217; 这个函数，来创建修订版，所以在这段语句前添加 &#8216;//&#8217;将其转为注释，这样就可以安静了。</p>
<blockquote><p>//add_action( &#8216;pre_post_update&#8217;, &#8216;wp_save_post_revision&#8217; );</p>
</blockquote>
<p>但这样做还不完全，我们需要第二步修改，来完全的禁止修订功能。</p>
<p>2，打开 ‘wp-admin\includes\post.php’ 文件，找到以下代码：</p>
<blockquote><p>return _wp_put_post_revision( $_POST, true );</p>
</blockquote>
<p>修改为：</p>
<blockquote><p>return edit_post();</p>
</blockquote>
<p>这样以后每次在修改已发布文章时，就不再会出现修订版了。</p>
<p>有兴趣的朋友不妨试试，很不错的。不过缺点就是，每次升级Wordpress都需要重新修改，有点小麻烦。</p>
]]></content:encoded>
			<wfw:commentRss>http://ale.net.cn/blog/2009/09/%e5%ae%8c%e5%85%a8%e6%89%8b%e5%8a%a8%e7%a6%81%e6%ad%a2wordpress%e4%bf%ae%e8%ae%a2%e5%8a%9f%e8%83%bd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL字符串函数CONCAT使用</title>
		<link>http://ale.net.cn/blog/2009/09/mysql%e5%ad%97%e7%ac%a6%e4%b8%b2%e5%87%bd%e6%95%b0concat%e4%bd%bf%e7%94%a8/</link>
		<comments>http://ale.net.cn/blog/2009/09/mysql%e5%ad%97%e7%ac%a6%e4%b8%b2%e5%87%bd%e6%95%b0concat%e4%bd%bf%e7%94%a8/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 01:56:41 +0000</pubDate>
		<dc:creator>ale</dc:creator>
				<category><![CDATA[程序]]></category>
		<category><![CDATA[CONCAT]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://ale.net.cn/blog/?p=93</guid>
		<description><![CDATA[在转换mysql数据的时候用到CONCAT函数，很实用。
在原字段内容的基础上，增加内容，通过CONCAT可以方便的实现。代码如下：
UPDATE `表名` SET `字段名` =concat(&#8217;字段名&#8217;,'新内容&#8217;) ;
]]></description>
			<content:encoded><![CDATA[<p>在转换mysql数据的时候用到CONCAT函数，很实用。</p>
<p>在原字段内容的基础上，增加内容，通过CONCAT可以方便的实现。代码如下：</p>
<p>UPDATE `表名` SET `字段名` =concat(&#8217;字段名&#8217;,'新内容&#8217;) ;</p>
]]></content:encoded>
			<wfw:commentRss>http://ale.net.cn/blog/2009/09/mysql%e5%ad%97%e7%ac%a6%e4%b8%b2%e5%87%bd%e6%95%b0concat%e4%bd%bf%e7%94%a8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
