<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>评论: WordPress 2.5 标签重复问题解决方案</title>
	<atom:link href="http://wpchina.org/wordpress-duplicate-tags-fix-223/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpchina.org/wordpress-duplicate-tags-fix-223/</link>
	<description>提供 WordPress 插件、主题、程序及相关的中文资讯</description>
	<lastBuildDate>Sat, 11 Feb 2012 05:12:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>作者: 睡到自然醒blog</title>
		<link>http://wpchina.org/wordpress-duplicate-tags-fix-223/comment-page-1/#comment-4762</link>
		<dc:creator>睡到自然醒blog</dc:creator>
		<pubDate>Fri, 03 Oct 2008 17:39:29 +0000</pubDate>
		<guid isPermaLink="false">http://wpchina.org/wordpress-duplicate-tags-fix-223/#comment-4762</guid>
		<description>原来我很早就到过这了:)</description>
		<content:encoded><![CDATA[<p>原来我很早就到过这了:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: zhang</title>
		<link>http://wpchina.org/wordpress-duplicate-tags-fix-223/comment-page-1/#comment-3218</link>
		<dc:creator>zhang</dc:creator>
		<pubDate>Thu, 07 Aug 2008 13:26:25 +0000</pubDate>
		<guid isPermaLink="false">http://wpchina.org/wordpress-duplicate-tags-fix-223/#comment-3218</guid>
		<description>盼望2.6 的解决方案。谢谢</description>
		<content:encoded><![CDATA[<p>盼望2.6 的解决方案。谢谢</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: 毒龙的世界</title>
		<link>http://wpchina.org/wordpress-duplicate-tags-fix-223/comment-page-1/#comment-3023</link>
		<dc:creator>毒龙的世界</dc:creator>
		<pubDate>Tue, 29 Jul 2008 17:35:38 +0000</pubDate>
		<guid isPermaLink="false">http://wpchina.org/wordpress-duplicate-tags-fix-223/#comment-3023</guid>
		<description>[...] G了很久，找到了Wordpress 2.5 标签重复问题解决方案这篇文章。非常感谢Jiang大哥的分享。 [...]</description>
		<content:encoded><![CDATA[<p>[...] G了很久，找到了Wordpress 2.5 标签重复问题解决方案这篇文章。非常感谢Jiang大哥的分享。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: Jiang</title>
		<link>http://wpchina.org/wordpress-duplicate-tags-fix-223/comment-page-1/#comment-2953</link>
		<dc:creator>Jiang</dc:creator>
		<pubDate>Fri, 25 Jul 2008 22:57:55 +0000</pubDate>
		<guid isPermaLink="false">http://wpchina.org/wordpress-duplicate-tags-fix-223/#comment-2953</guid>
		<description>晕，看来还得继续寻找 2.6 的解决方案。</description>
		<content:encoded><![CDATA[<p>晕，看来还得继续寻找 2.6 的解决方案。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: lulu</title>
		<link>http://wpchina.org/wordpress-duplicate-tags-fix-223/comment-page-1/#comment-2906</link>
		<dc:creator>lulu</dc:creator>
		<pubDate>Tue, 22 Jul 2008 13:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://wpchina.org/wordpress-duplicate-tags-fix-223/#comment-2906</guid>
		<description>不错不错</description>
		<content:encoded><![CDATA[<p>不错不错</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: WordPress2.5标签bug-2.6升级失败-修改数据库密码的办法 &#124; 读书生</title>
		<link>http://wpchina.org/wordpress-duplicate-tags-fix-223/comment-page-1/#comment-2897</link>
		<dc:creator>WordPress2.5标签bug-2.6升级失败-修改数据库密码的办法 &#124; 读书生</dc:creator>
		<pubDate>Mon, 21 Jul 2008 14:21:42 +0000</pubDate>
		<guid isPermaLink="false">http://wpchina.org/wordpress-duplicate-tags-fix-223/#comment-2897</guid>
		<description>[...] 一个Tag既有名称（Name），又有缩略名（Slug），在页面上，Tag显示为Name，而在系统中，Tag被记录为Slug，每一个Tag的Name和Slug都是一一对应的。其中，Name可以定义为中文或英语，Slug要被系统记录，所以只能是英语字符，如果你将Tag的Slug定义为中文，在2.5.1中，系统会自动将其转化为一串英文+数字的字符。问题就处在这里。中文博客的Tag名称通常定义为中文，而URL里的Slug要展示英语，系统又只能用一串无意义的字符来把Name翻译成Slug，从而出现在为文章添加标签的时候，标签不断出现重复的现象：同一个Name，对应两个Slug，一个是你自己设置的正确Slug，一个是系统根据Name自动翻译的错误Slug。这就导致写博客时添加标签非常麻烦。按照这篇文章的说法，有两种解决问题的办法：其一，改文件；其二，据说会在2.6中修订这个bug。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 一个Tag既有名称（Name），又有缩略名（Slug），在页面上，Tag显示为Name，而在系统中，Tag被记录为Slug，每一个Tag的Name和Slug都是一一对应的。其中，Name可以定义为中文或英语，Slug要被系统记录，所以只能是英语字符，如果你将Tag的Slug定义为中文，在2.5.1中，系统会自动将其转化为一串英文+数字的字符。问题就处在这里。中文博客的Tag名称通常定义为中文，而URL里的Slug要展示英语，系统又只能用一串无意义的字符来把Name翻译成Slug，从而出现在为文章添加标签的时候，标签不断出现重复的现象：同一个Name，对应两个Slug，一个是你自己设置的正确Slug，一个是系统根据Name自动翻译的错误Slug。这就导致写博客时添加标签非常麻烦。按照这篇文章的说法，有两种解决问题的办法：其一，改文件；其二，据说会在2.6中修订这个bug。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: Steve Luo</title>
		<link>http://wpchina.org/wordpress-duplicate-tags-fix-223/comment-page-1/#comment-2890</link>
		<dc:creator>Steve Luo</dc:creator>
		<pubDate>Mon, 21 Jul 2008 09:18:07 +0000</pubDate>
		<guid isPermaLink="false">http://wpchina.org/wordpress-duplicate-tags-fix-223/#comment-2890</guid>
		<description>2.5.1的用这个方法成功解决了，不过升级到2.6以后发现问题依然存在，而且用这个方法也不管用了。。哎</description>
		<content:encoded><![CDATA[<p>2.5.1的用这个方法成功解决了，不过升级到2.6以后发现问题依然存在，而且用这个方法也不管用了。。哎</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: Loki</title>
		<link>http://wpchina.org/wordpress-duplicate-tags-fix-223/comment-page-1/#comment-2875</link>
		<dc:creator>Loki</dc:creator>
		<pubDate>Sat, 19 Jul 2008 15:54:12 +0000</pubDate>
		<guid isPermaLink="false">http://wpchina.org/wordpress-duplicate-tags-fix-223/#comment-2875</guid>
		<description>解决不了...!
在2.5.1是这样...升级到2.6还是这样...快疯了...</description>
		<content:encoded><![CDATA[<p>解决不了&#8230;!<br />
在2.5.1是这样&#8230;升级到2.6还是这样&#8230;快疯了&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: Tom</title>
		<link>http://wpchina.org/wordpress-duplicate-tags-fix-223/comment-page-1/#comment-2785</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 16 Jul 2008 02:31:28 +0000</pubDate>
		<guid isPermaLink="false">http://wpchina.org/wordpress-duplicate-tags-fix-223/#comment-2785</guid>
		<description>新版2.6的标签仍然有问题，昨天升级了一下，有出现了老问题，按照这个方法修改后，仍然不行。最后不得不恢复到2.5。。。</description>
		<content:encoded><![CDATA[<p>新版2.6的标签仍然有问题，昨天升级了一下，有出现了老问题，按照这个方法修改后，仍然不行。最后不得不恢复到2.5。。。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: Tom</title>
		<link>http://wpchina.org/wordpress-duplicate-tags-fix-223/comment-page-1/#comment-2725</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Mon, 14 Jul 2008 02:42:17 +0000</pubDate>
		<guid isPermaLink="false">http://wpchina.org/wordpress-duplicate-tags-fix-223/#comment-2725</guid>
		<description>非常感谢，这个问题搞的我十分困扰，因为我是最近新搬家到WP的，对WP只是久闻大名，没想到遇到这个棘手的问题。2个标签搞的一团糟，现在终于改好了。
欢迎到我的博客做客，美博园 http://allinfa.com/
今后还得多来兄弟们这里走走了。
再次感谢。</description>
		<content:encoded><![CDATA[<p>非常感谢，这个问题搞的我十分困扰，因为我是最近新搬家到WP的，对WP只是久闻大名，没想到遇到这个棘手的问题。2个标签搞的一团糟，现在终于改好了。<br />
欢迎到我的博客做客，美博园 <a href="http://allinfa.com/" rel="nofollow">http://allinfa.com/</a><br />
今后还得多来兄弟们这里走走了。<br />
再次感谢。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: wordpress插件Simple Tags中文tag标签重复问题bug修正 &#124; 睡到自然醒blog</title>
		<link>http://wpchina.org/wordpress-duplicate-tags-fix-223/comment-page-1/#comment-2314</link>
		<dc:creator>wordpress插件Simple Tags中文tag标签重复问题bug修正 &#124; 睡到自然醒blog</dc:creator>
		<pubDate>Sat, 31 May 2008 11:45:33 +0000</pubDate>
		<guid isPermaLink="false">http://wpchina.org/wordpress-duplicate-tags-fix-223/#comment-2314</guid>
		<description>[...] 参考wpchina上一篇文章的方法： 1. 打开 &lt;WordPress&gt;/wp-includes/taxonomy.php ，大约 746 行附近： if ( &#8221; === $term = sanitize_title($term) )             return 0;         $where = $wpdb-&gt;prepare( &#8220;t.slug = %s&#8221;, $term ); 修改为： if ( &#8221; === $sanitized = sanitize_title($term) )                         return 0;                  if ( &#8216;post_tag&#8217; === $taxonomy ) {                              $where = $wpdb-&gt;prepare( &#8220;(t.slug = %s OR t.name = %s)&#8221;, $sanitized , $term );                     } else {                              $where = $wpdb-&gt;prepare( &#8220;t.slug = %s&#8221;, $sanitized );                     } [...]</description>
		<content:encoded><![CDATA[<p>[...] 参考wpchina上一篇文章的方法： 1. 打开 &lt;WordPress&gt;/wp-includes/taxonomy.php ，大约 746 行附近： if ( &#8221; === $term = sanitize_title($term) )             return 0;         $where = $wpdb-&gt;prepare( &#8220;t.slug = %s&#8221;, $term ); 修改为： if ( &#8221; === $sanitized = sanitize_title($term) )                         return 0;                  if ( &#8216;post_tag&#8217; === $taxonomy ) {                              $where = $wpdb-&gt;prepare( &#8220;(t.slug = %s OR t.name = %s)&#8221;, $sanitized , $term );                     } else {                              $where = $wpdb-&gt;prepare( &#8220;t.slug = %s&#8221;, $sanitized );                     } [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: 睡到自然醒blog</title>
		<link>http://wpchina.org/wordpress-duplicate-tags-fix-223/comment-page-1/#comment-2313</link>
		<dc:creator>睡到自然醒blog</dc:creator>
		<pubDate>Sat, 31 May 2008 10:13:23 +0000</pubDate>
		<guid isPermaLink="false">http://wpchina.org/wordpress-duplicate-tags-fix-223/#comment-2313</guid>
		<description>我也发现这个问题，还是没解决呀</description>
		<content:encoded><![CDATA[<p>我也发现这个问题，还是没解决呀</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: 李海鑫</title>
		<link>http://wpchina.org/wordpress-duplicate-tags-fix-223/comment-page-1/#comment-2134</link>
		<dc:creator>李海鑫</dc:creator>
		<pubDate>Sat, 10 May 2008 11:48:08 +0000</pubDate>
		<guid isPermaLink="false">http://wpchina.org/wordpress-duplicate-tags-fix-223/#comment-2134</guid>
		<description>修改了，还是出现重复！</description>
		<content:encoded><![CDATA[<p>修改了，还是出现重复！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: Jiang</title>
		<link>http://wpchina.org/wordpress-duplicate-tags-fix-223/comment-page-1/#comment-2128</link>
		<dc:creator>Jiang</dc:creator>
		<pubDate>Fri, 09 May 2008 02:21:54 +0000</pubDate>
		<guid isPermaLink="false">http://wpchina.org/wordpress-duplicate-tags-fix-223/#comment-2128</guid>
		<description>有技术含量不重要，关键是很有用 :)</description>
		<content:encoded><![CDATA[<p>有技术含量不重要，关键是很有用 <img src='http://wpchina.org/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: moon</title>
		<link>http://wpchina.org/wordpress-duplicate-tags-fix-223/comment-page-1/#comment-2124</link>
		<dc:creator>moon</dc:creator>
		<pubDate>Thu, 08 May 2008 11:07:20 +0000</pubDate>
		<guid isPermaLink="false">http://wpchina.org/wordpress-duplicate-tags-fix-223/#comment-2124</guid>
		<description>学习了，有技术含量</description>
		<content:encoded><![CDATA[<p>学习了，有技术含量</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: Jiang</title>
		<link>http://wpchina.org/wordpress-duplicate-tags-fix-223/comment-page-1/#comment-2121</link>
		<dc:creator>Jiang</dc:creator>
		<pubDate>Thu, 08 May 2008 00:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://wpchina.org/wordpress-duplicate-tags-fix-223/#comment-2121</guid>
		<description>呵呵，代码添加上了~</description>
		<content:encoded><![CDATA[<p>呵呵，代码添加上了~</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: minlawoo</title>
		<link>http://wpchina.org/wordpress-duplicate-tags-fix-223/comment-page-1/#comment-2120</link>
		<dc:creator>minlawoo</dc:creator>
		<pubDate>Thu, 08 May 2008 00:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://wpchina.org/wordpress-duplicate-tags-fix-223/#comment-2120</guid>
		<description>修改为 空白？</description>
		<content:encoded><![CDATA[<p>修改为 空白？</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: wpchina.org @ 2012-02-11 17:02:55 -->
