<?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; Wordpress</title>
	<atom:link href="http://www.yzznl.cn/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.yzznl.cn</link>
	<description>快乐 互助 分享 一直在努力（yzznl）！</description>
	<lastBuildDate>Sat, 04 Feb 2012 09:51:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>升级到 WordPress 3.3</title>
		<link>http://www.yzznl.cn/archives/wp-3-3.html</link>
		<comments>http://www.yzznl.cn/archives/wp-3-3.html#comments</comments>
		<pubDate>Tue, 13 Dec 2011 08:07:25 +0000</pubDate>
		<dc:creator>园子</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.yzznl.cn/?p=43154</guid>
		<description><![CDATA[登陆 wordpress 时发现有新新版本提示升级，没多想就直接升级到了最新的 WordPress 3.3版本。据后台更新完毕的信息提示，这个版本更新的内容还真不少。诸如：简易上传、仪表盘的设计（即原来的控制板）、耳目一新界面设计、内容相关改进、面板之下的优化等等都做了改进和调整，再次使用后台时有种耳目一新的感觉。 在更新完成之后的提示语言增加了些幽默风趣的风格，提示如下： 感谢升级到最新版本！使用 WordPress 3.3 不仅可以让男生更帅，女生更美、改良人格，还可以大幅提升您在网上发布的体验。诶，开玩笑的，其实她只能提升您的使用体验，但是光这一点就很不错了 WordPress 3.3 主要更新内容 1.弹出菜单 全新的自动弹出式菜单提高您的效率，减少不必要的反复鼠标点击。当您把鼠标放置在主菜单项目上方时，其子菜单会自动弹出——从此访问任何页面只需一次鼠标点击！ 2.原顶部内容 + 管理工具栏 = 一体化工具栏 为了节约宝贵的屏幕空间，我们将之前的“管理工具栏”和仪表盘的顶部内容结合了起来，制作了全新的一体化工具栏。将鼠标移至相应功能分类的上方来快捷访问各项功能。 3.自适应的界面 很多仪表盘页面的样式已经过优化，适合更多的屏幕大小，包括 iPad 和一些“平板电脑”设备。 4.“帮助”选项卡们 每个仪表盘页面右上方的“帮助”选项卡日前接受了我们的整容手术。原先大段的帮助内容大多分成了几个小类，更加实用，便于查找。其右侧的相关链接则一直显示。 5.新特性气泡提示 今后在我们大幅改动页面设计时，新的“气泡提示”会自动通知您，告知改动的详情，方便您更快了解并适应我们的新设计。 6.获知升级内容 就是这个页面！今后每当您升级 WordPress 后，您都会看到这个页面 —— 本页面也可以通过点击工具栏左侧的 W 图标访问到 —— 令您了解我们最近更新了什么。 7.仪表盘欢迎框 在用户安装完 WordPress ，第一次访问仪表盘的首页时，会看到“欢迎”框。欢迎框展示如何完成配置并开始使用 WordPress。在用户关闭该框后，可以通过仪表盘首页的“显示选项”令其再度显示出来。 8.增强的合作编辑 您原来是否遇到过“某人也在编辑这篇文章”的提示，但是实际上此人已经编辑完了的问题？今后，只有他人正在编辑页面上时，您才会得到提示——没有延时！ 9.Tumblr 导入工具 要从 Tumblr 将内容导入到 WordPress？现在可以了！访问“工具” > “导入”来获取新的 Tumblr [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress 3.0 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291919.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="升级到 WordPress 3.1.3" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-1-3.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">升级到 WordPress 3.1.3</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="使用 WordPress 定时发布文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-timed-release.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290600.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用 WordPress 定时发布文章</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="详解 WordPress 目录下的 core 文件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-core-file.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291580.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">详解 WordPress 目录下的 core 文件</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="wordpress的一些快捷键" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-some-of-the-shortcuts.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress的一些快捷键</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>登陆 <span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/category/wordpress" title="wordpress">wordpress</a></span> 时发现有新新版本提示升级，没多想就直接<strong>升级到了最新的 WordPress 3.3版本</strong>。据后台更新完毕的信息提示，这个版本更新的内容还真不少。诸如：<strong>简易上传、仪表盘的设计（即原来的控制板）、耳目一新界面设计、内容相关改进、面板之下的优化</strong>等等都做了改进和调整，再次使用后台时有种耳目一新的感觉。<br />
<span id="more-43154"></span></p>
<p>在更新完成之后的提示语言增加了些幽默风趣的风格，提示如下：</p>
<p>感谢升级到最新版本！使用 WordPress 3.3 不仅可以让男生更帅，女生更美、改良人格，还可以大幅提升您在网上发布的体验。诶，开玩笑的，其实她只能提升您的使用体验，但是光这一点就很不错了 <img src='http://www.yzznl.cn/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div id="attachment_43155" class="wp-caption aligncenter" style="width: 499px"><a href="http://www.yzznl.cn/archives/wp-3-3.html"><img src="http://www.yzznl.cn/wp-content/uploads/2011/12/WordPress-3-3.jpg" alt="升级到 WordPress 3.3" title="升级到 WordPress 3.3" width="489" height="226" class="size-full wp-image-43155" /></a><p class="wp-caption-text">升级到 WordPress 3.3</p></div>
<h4>WordPress 3.3 主要更新内容</h4>
<p><strong>1.弹出菜单</strong></p>
<p>全新的自动弹出式菜单提高您的效率，减少不必要的反复鼠标点击。当您把鼠标放置在主菜单项目上方时，其子菜单会自动弹出——从此访问任何页面只需一次鼠标点击！</p>
<p><strong>2.原顶部内容 + 管理工具栏 = 一体化工具栏</strong></p>
<p>为了节约宝贵的屏幕空间，我们将之前的“管理工具栏”和仪表盘的顶部内容结合了起来，制作了全新的一体化工具栏。将鼠标移至相应功能分类的上方来快捷访问各项功能。</p>
<p><strong>3.自适应的界面</strong></p>
<p>很多仪表盘页面的样式已经过优化，适合更多的屏幕大小，包括 iPad 和一些“平板电脑”设备。</p>
<p><strong>4.“帮助”选项卡们</strong></p>
<p>每个仪表盘页面右上方的“帮助”选项卡日前接受了我们的整容手术。原先大段的帮助内容大多分成了几个小类，更加实用，便于查找。其右侧的相关链接则一直显示。</p>
<p><strong>5.新特性气泡提示</strong></p>
<p>今后在我们大幅改动页面设计时，新的“气泡提示”会自动通知您，告知改动的详情，方便您更快了解并适应我们的新设计。</p>
<p><strong>6.获知升级内容</strong></p>
<p>就是这个页面！今后每当您升级 WordPress 后，您都会看到这个页面 —— 本页面也可以通过点击工具栏左侧的 W 图标访问到 —— 令您了解我们最近更新了什么。</p>
<p><strong>7.仪表盘欢迎框</strong></p>
<p>在用户安装完 WordPress ，第一次访问仪表盘的首页时，会看到“欢迎”框。欢迎框展示如何完成配置并开始使用 WordPress。在用户关闭该框后，可以通过仪表盘首页的“显示选项”令其再度显示出来。</p>
<p><strong>8.增强的合作编辑</strong></p>
<p>您原来是否遇到过“某人也在编辑这篇文章”的提示，但是实际上此人已经编辑完了的问题？今后，只有他人正在编辑页面上时，您才会得到提示——没有延时！</p>
<p><strong>9.Tumblr 导入工具</strong></p>
<p>要从 Tumblr 将内容导入到 WordPress？现在可以了！访问“工具” > “导入”来获取新的 Tumblr 导入工具。该导入工具甚至支持自动为您选择正确的文章形式，在导入之前先选择一个支持文章形式功能的主题即可。</p>
<p><strong>10.边栏小工具改进</strong></p>
<p>主题所支持的边栏数目和位置通常各不相同。更改主题经常需要您手动重新配置边栏。但现在，如果您切换回原来使用过的主题，其边栏小工具将自动恢复。注意：如果您在切换主题之后又添加了新的边栏，您原来小工具的设置能被保留，但是无法自动恢复回它们各自的位置，这时您将需要从“未使用的小工具”中半自动地将他们放回原先的位置。</p>
<p><strong>11.灵活的固定链接选择</strong></p>
<p>固定链接方面，您有了更多的格式选择。删除 URL 中的日期信息、在 URL 中包含分类目录别名不会再降低程序运行效率。</p>
<p><strong>12.文章别名：更别致</strong></p>
<p>在文章标题中的特殊字符（比如 Word 中的引号）不会再把文章的别名弄得一团糟。</p>
<p><strong>13.jQuery 和 jQuery UI</strong></p>
<p>WordPress 现已包含整个 jQuery UI 和 jQuery 的最新版本（1.7.1）。</p>
<p><strong>14.is_main_query()</strong></p>
<p>这个实用的方法可以返回一个指定的 WP_Query 对象是否是主 WordPress 查询。</p>
<p><strong>15.WP_Screen API</strong></p>
<p>WordPress 新增了超棒的 API，供您调整各个后台页面的细节，比如创建内容丰富的页面、添加帮助文本、适应页面上下文等等。</p>
<p><strong>16.编辑器 API 的大调整</strong></p>
<p>新的编辑器 API 可以自动为您的插件页面添加文章、页面编辑器及其所需的所有 JS 和 <span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/category/css" title="css">css</a></span> 文件。它甚至支持您在一个页面上加入多个编辑器。</p>
<p><strong><span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/about" title="园子" rel="nofollow">园子</a></span>友情提示：</strong></p>
<p>为安全起见，升级前请备份好数据库及文件，相关教程请参见：<a href="http://www.yzznl.cn/archives/240.html" title="WordPress 数据备份教程">WordPress 数据备份教程</a></p>
<h3  class="related_post_title">扩展阅读</h3><ul class="related_post"><li><a href="http://www.yzznl.cn/archives/wp-update.html" title="WordPress 技巧：更新时只更新核心文件">WordPress 技巧：更新时只更新核心文件</a> (13)<br /><small>使用 WordPress 的博友都知道，WordPress 在3.2版本之后，更新频率越来越...</small></li><li><a href="http://www.yzznl.cn/archives/wordads.html" title="WordPress 推出 WordAds 广告系统">WordPress 推出 WordAds 广告系统</a> (41)<br /><small>据 WordPress 官方消息，WordPress 已经推出 WordAds 广告系统，让...</small></li><li><a href="http://www.yzznl.cn/archives/wp-spam.html" title="Wordpress 不用插件防垃圾评论">Wordpress 不用插件防垃圾评论</a> (75)<br /><small>其实在很早的时候园子就开始使用 Willin 大师的小墙替代了防垃圾评论插件了，这个小墙的功...</small></li><li><a href="http://www.yzznl.cn/archives/wp-tougao.html" title="WordPress 不用插件实现在线投稿功能">WordPress 不用插件实现在线投稿功能</a> (31)<br /><small>很多网站上都设有在线投稿功能，在线投稿可以让其他读者的文章有机会发布在自己网站或博客上。这样...</small></li><li><a href="http://www.yzznl.cn/archives/wp-3-2.html" title="WordPress 3.2 中文版发布，后台界面有较大改进">WordPress 3.2 中文版发布，后台界面有较大改进</a> (54)<br /><small>等了些天终于盼来了 WordPress 3.2 中文版发布，园子安装试用后，感觉 WordP...</small></li><li><a href="http://www.yzznl.cn/archives/436.html" title="WordPress 最新禁用文章修订和自动保存的方法">WordPress 最新禁用文章修订和自动保存的方法</a> (20)<br /><small>WordPress 默认都带有文章修订和自动保存的功能，对于一些博主来说，不是很喜欢这些功能...</small></li><li><a href="http://www.yzznl.cn/archives/article-top.html" title="WordPress 技巧：月度文章排行的显示方法">WordPress 技巧：月度文章排行的显示方法</a> (39)<br /><small>很多个人博客都习惯在侧栏显示出月度文章排行或年度文章排行，这种显示方式可以直接增加网友访问博...</small></li><li><a href="http://www.yzznl.cn/archives/wordpress-3-1-3.html" title="升级到 WordPress 3.1.3">升级到 WordPress 3.1.3</a> (37)<br /><small>WordPress 的更新频率越来越不可思议，昨天在后台看到了 WordPress 3.1....</small></li><li><a href="http://www.yzznl.cn/archives/canonical.html" title="canonical 标签介绍">canonical 标签介绍</a> (14)<br /><small>rel="canonical" 这个标签已经推出很久了，canonical 是 Google...</small></li><li><a href="http://www.yzznl.cn/archives/remove-wp-toolbar.html" title="快速去掉 WordPress 3.1 的工具栏">快速去掉 WordPress 3.1 的工具栏</a> (18)<br /><small>更新到 WordPress 3.1 版本的朋友们，可能发现最大的改善就是多了一个工具栏，它可...</small></li></ul><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress 3.0 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291919.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="升级到 WordPress 3.1.3" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-1-3.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">升级到 WordPress 3.1.3</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="使用 WordPress 定时发布文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-timed-release.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290600.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用 WordPress 定时发布文章</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="详解 WordPress 目录下的 core 文件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-core-file.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291580.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">详解 WordPress 目录下的 core 文件</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="wordpress的一些快捷键" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-some-of-the-shortcuts.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress的一些快捷键</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yzznl.cn/archives/wp-3-3.html/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>WordPress 技巧：更新时只更新核心文件</title>
		<link>http://www.yzznl.cn/archives/wp-update.html</link>
		<comments>http://www.yzznl.cn/archives/wp-update.html#comments</comments>
		<pubDate>Thu, 08 Dec 2011 02:24:27 +0000</pubDate>
		<dc:creator>园子</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.yzznl.cn/?p=43151</guid>
		<description><![CDATA[使用 wordpress 的博友都知道，WordPress 在3.2版本之后，更新频率越来越快了，如果我们直接在后台点击自动更新，可能会把之前你自定义的一些文件也更新了，比如 wp-content 文件夹中的一些文件。本文园子与大家分享一个WP更新技巧，在更新的时候只更新核心文件。 方法是从水煮鱼大师那学习到的，方法也非常简单，一行代码搞定。 WordPress 更新时只更新核心文件的方法 1.打开配置文件 wp-config.php。 2.在文档中添加如下代码上传即可： 1 2 // 让 WP 更新的时候只更新核心 define&#40; 'CORE_UPGRADE_SKIP_NEW_BUNDLED', TRUE &#41;; 添加后如下图所示： 扩展阅读升级到 WordPress 3.3 (15)登陆 WordPress 时发现有新新版本提示升级，没多想就直接升级到了最新的 WordPr...WordPress 推出 WordAds 广告系统 (41)据 WordPress 官方消息，WordPress 已经推出 WordAds 广告系统，让...Wordpress 不用插件防垃圾评论 (75)其实在很早的时候园子就开始使用 Willin 大师的小墙替代了防垃圾评论插件了，这个小墙的功...WordPress 不用插件实现在线投稿功能 (31)很多网站上都设有在线投稿功能，在线投稿可以让其他读者的文章有机会发布在自己网站或博客上。这样...WordPress 3.2 中文版发布，后台界面有较大改进 (54)等了些天终于盼来了 WordPress 3.2 中文版发布，园子安装试用后，感觉 WordP...WordPress 最新禁用文章修订和自动保存的方法 (20)WordPress 默认都带有文章修订和自动保存的功能，对于一些博主来说，不是很喜欢这些功能...WordPress [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="详解 WordPress 目录下的 core 文件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-core-file.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-update.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291580.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">详解 WordPress 目录下的 core 文件</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="wordpress分页插件pagebar介绍" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-pagebar.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-update.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4293861.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress分页插件pagebar介绍</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress永久链接设置" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-permailink.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-update.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress永久链接设置</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 3.0 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-update.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291919.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="使用 WordPress 定时发布文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-timed-release.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-update.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290600.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用 WordPress 定时发布文章</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>使用 <span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/category/wordpress" title="wordpress">wordpress</a></span> 的博友都知道，WordPress 在3.2版本之后，更新频率越来越快了，如果我们直接在后台点击自动更新，可能会把之前你自定义的一些文件也更新了，比如 wp-content 文件夹中的一些文件。本文<span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/about" title="园子" rel="nofollow">园子</a></span>与大家分享一个<strong>WP更新技巧，在更新的时候只更新核心文件</strong>。<br />
<span id="more-43151"></span></p>
<p>方法是从水煮鱼大师那学习到的，方法也非常简单，一行代码搞定。</p>
<h4>WordPress 更新时只更新核心文件的方法</h4>
<p>1.打开配置文件 wp-config.php。</p>
<p>2.在文档中添加如下代码上传即可：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:Microsoft YaHei,Arial;"><span style="color: #666666; font-style: italic;">// 让 WP 更新的时候只更新核心</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'CORE_UPGRADE_SKIP_NEW_BUNDLED'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">TRUE</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>添加后如下图所示：</p>
<div id="attachment_43152" class="wp-caption aligncenter" style="width: 454px"><a href="http://www.yzznl.cn/archives/wp-update.html"><img src="http://www.yzznl.cn/wp-content/uploads/2011/12/wp-update.gif" alt="WordPress 技巧：更新时只更新核心文件" title="WordPress 技巧：更新时只更新核心文件" width="444" height="119" class="size-full wp-image-43152" /></a><p class="wp-caption-text">WordPress 技巧：更新时只更新核心文件</p></div>
<h3  class="related_post_title">扩展阅读</h3><ul class="related_post"><li><a href="http://www.yzznl.cn/archives/wp-3-3.html" title="升级到 WordPress 3.3">升级到 WordPress 3.3</a> (15)<br /><small>登陆 WordPress 时发现有新新版本提示升级，没多想就直接升级到了最新的 WordPr...</small></li><li><a href="http://www.yzznl.cn/archives/wordads.html" title="WordPress 推出 WordAds 广告系统">WordPress 推出 WordAds 广告系统</a> (41)<br /><small>据 WordPress 官方消息，WordPress 已经推出 WordAds 广告系统，让...</small></li><li><a href="http://www.yzznl.cn/archives/wp-spam.html" title="Wordpress 不用插件防垃圾评论">Wordpress 不用插件防垃圾评论</a> (75)<br /><small>其实在很早的时候园子就开始使用 Willin 大师的小墙替代了防垃圾评论插件了，这个小墙的功...</small></li><li><a href="http://www.yzznl.cn/archives/wp-tougao.html" title="WordPress 不用插件实现在线投稿功能">WordPress 不用插件实现在线投稿功能</a> (31)<br /><small>很多网站上都设有在线投稿功能，在线投稿可以让其他读者的文章有机会发布在自己网站或博客上。这样...</small></li><li><a href="http://www.yzznl.cn/archives/wp-3-2.html" title="WordPress 3.2 中文版发布，后台界面有较大改进">WordPress 3.2 中文版发布，后台界面有较大改进</a> (54)<br /><small>等了些天终于盼来了 WordPress 3.2 中文版发布，园子安装试用后，感觉 WordP...</small></li><li><a href="http://www.yzznl.cn/archives/436.html" title="WordPress 最新禁用文章修订和自动保存的方法">WordPress 最新禁用文章修订和自动保存的方法</a> (20)<br /><small>WordPress 默认都带有文章修订和自动保存的功能，对于一些博主来说，不是很喜欢这些功能...</small></li><li><a href="http://www.yzznl.cn/archives/article-top.html" title="WordPress 技巧：月度文章排行的显示方法">WordPress 技巧：月度文章排行的显示方法</a> (39)<br /><small>很多个人博客都习惯在侧栏显示出月度文章排行或年度文章排行，这种显示方式可以直接增加网友访问博...</small></li><li><a href="http://www.yzznl.cn/archives/wordpress-3-1-3.html" title="升级到 WordPress 3.1.3">升级到 WordPress 3.1.3</a> (37)<br /><small>WordPress 的更新频率越来越不可思议，昨天在后台看到了 WordPress 3.1....</small></li><li><a href="http://www.yzznl.cn/archives/canonical.html" title="canonical 标签介绍">canonical 标签介绍</a> (14)<br /><small>rel="canonical" 这个标签已经推出很久了，canonical 是 Google...</small></li><li><a href="http://www.yzznl.cn/archives/remove-wp-toolbar.html" title="快速去掉 WordPress 3.1 的工具栏">快速去掉 WordPress 3.1 的工具栏</a> (18)<br /><small>更新到 WordPress 3.1 版本的朋友们，可能发现最大的改善就是多了一个工具栏，它可...</small></li></ul><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="详解 WordPress 目录下的 core 文件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-core-file.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-update.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291580.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">详解 WordPress 目录下的 core 文件</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="wordpress分页插件pagebar介绍" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-pagebar.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-update.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4293861.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress分页插件pagebar介绍</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress永久链接设置" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-permailink.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-update.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress永久链接设置</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 3.0 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-update.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291919.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="使用 WordPress 定时发布文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-timed-release.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-update.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290600.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用 WordPress 定时发布文章</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yzznl.cn/archives/wp-update.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>WordPress 推出 WordAds 广告系统</title>
		<link>http://www.yzznl.cn/archives/wordads.html</link>
		<comments>http://www.yzznl.cn/archives/wordads.html#comments</comments>
		<pubDate>Wed, 30 Nov 2011 08:47:01 +0000</pubDate>
		<dc:creator>园子</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.yzznl.cn/?p=43149</guid>
		<description><![CDATA[据 wordpress 官方消息，WordPress 已经推出 WordAds 广告系统，让用户可以在自己的博客上投放广告。 国内站长用的较多的广告系统应该是 Google AdSense和百度联盟，不知道此次 WordPress 推出的 WordAds，会不会让站长们多一个比较好的赢利途径。 申请 WordAds 需要具备的条件 首先得拥有一个独立域名，提交申请后 WordAds 会根据你提供博客的流量、内容等因素来判断是否批准申请。 如果你对 WordAds 广告系统感兴趣，可以点击这里进入申请。（部分有墙的地区可能打不开） 扩展阅读升级到 WordPress 3.3 (15)登陆 WordPress 时发现有新新版本提示升级，没多想就直接升级到了最新的 WordPr...WordPress 技巧：更新时只更新核心文件 (13)使用 WordPress 的博友都知道，WordPress 在3.2版本之后，更新频率越来越...Wordpress 不用插件防垃圾评论 (75)其实在很早的时候园子就开始使用 Willin 大师的小墙替代了防垃圾评论插件了，这个小墙的功...WordPress 不用插件实现在线投稿功能 (31)很多网站上都设有在线投稿功能，在线投稿可以让其他读者的文章有机会发布在自己网站或博客上。这样...WordPress 3.2 中文版发布，后台界面有较大改进 (54)等了些天终于盼来了 WordPress 3.2 中文版发布，园子安装试用后，感觉 WordP...WordPress 最新禁用文章修订和自动保存的方法 (20)WordPress 默认都带有文章修订和自动保存的功能，对于一些博主来说，不是很喜欢这些功能...WordPress 技巧：月度文章排行的显示方法 (39)很多个人博客都习惯在侧栏显示出月度文章排行或年度文章排行，这种显示方式可以直接增加网友访问博...升级到 WordPress 3.1.3 (37)WordPress 的更新频率越来越不可思议，昨天在后台看到了 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress 3.0 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordads.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291919.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 推出语音博客功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-voice-blog.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordads.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 推出语音博客功能</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 3.0.1 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-301-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordads.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0.1 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="详解 WordPress 目录下的 core 文件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-core-file.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordads.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291580.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">详解 WordPress 目录下的 core 文件</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="使用 WordPress 定时发布文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-timed-release.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordads.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290600.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用 WordPress 定时发布文章</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>据 <span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/category/wordpress" title="wordpress">wordpress</a></span> 官方消息，<strong>WordPress 已经推出 WordAds 广告系统</strong>，让用户可以在自己的博客上投放广告。</p>
<p>国内站长用的较多的广告系统应该是 Google <span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/category/google-adsense" title="AdSense">AdSense</a></span>和百度联盟，不知道此次 WordPress 推出的 WordAds，会不会让站长们多一个比较好的赢利途径。<br />
<span id="more-43149"></span></p>
<h4>申请 WordAds 需要具备的条件</h4>
<p>首先得拥有一个独立域名，提交申请后 WordAds 会根据你提供博客的流量、内容等因素来判断是否批准申请。</p>
<div id="attachment_43150" class="wp-caption aligncenter" style="width: 494px"><a href="http://www.yzznl.cn/archives/wordads.html"><img src="http://www.yzznl.cn/wp-content/uploads/2011/11/WordAds.png" alt="WordPress 推出 WordAds 广告系统" title="WordPress 推出 WordAds 广告系统" width="484" height="287" class="size-full wp-image-43150" /></a><p class="wp-caption-text">WordPress 推出 WordAds 广告系统</p></div>
<p>如果你对 WordAds 广告系统感兴趣，可以<a rel="nofollow" href="http://en.wordpress.com/apply-for-wordads/" title="申请 WordAds">点击这里</a>进入申请。（部分有墙的地区可能打不开）</p>
<h3  class="related_post_title">扩展阅读</h3><ul class="related_post"><li><a href="http://www.yzznl.cn/archives/wp-3-3.html" title="升级到 WordPress 3.3">升级到 WordPress 3.3</a> (15)<br /><small>登陆 WordPress 时发现有新新版本提示升级，没多想就直接升级到了最新的 WordPr...</small></li><li><a href="http://www.yzznl.cn/archives/wp-update.html" title="WordPress 技巧：更新时只更新核心文件">WordPress 技巧：更新时只更新核心文件</a> (13)<br /><small>使用 WordPress 的博友都知道，WordPress 在3.2版本之后，更新频率越来越...</small></li><li><a href="http://www.yzznl.cn/archives/wp-spam.html" title="Wordpress 不用插件防垃圾评论">Wordpress 不用插件防垃圾评论</a> (75)<br /><small>其实在很早的时候<span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/about" title="园子" rel="nofollow">园子</a></span>就开始使用 Willin 大师的小墙替代了防垃圾评论插件了，这个小墙的功...</small></li><li><a href="http://www.yzznl.cn/archives/wp-tougao.html" title="WordPress 不用插件实现在线投稿功能">WordPress 不用插件实现在线投稿功能</a> (31)<br /><small>很多网站上都设有在线投稿功能，在线投稿可以让其他读者的文章有机会发布在自己网站或博客上。这样...</small></li><li><a href="http://www.yzznl.cn/archives/wp-3-2.html" title="WordPress 3.2 中文版发布，后台界面有较大改进">WordPress 3.2 中文版发布，后台界面有较大改进</a> (54)<br /><small>等了些天终于盼来了 WordPress 3.2 中文版发布，园子安装试用后，感觉 WordP...</small></li><li><a href="http://www.yzznl.cn/archives/436.html" title="WordPress 最新禁用文章修订和自动保存的方法">WordPress 最新禁用文章修订和自动保存的方法</a> (20)<br /><small>WordPress 默认都带有文章修订和自动保存的功能，对于一些博主来说，不是很喜欢这些功能...</small></li><li><a href="http://www.yzznl.cn/archives/article-top.html" title="WordPress 技巧：月度文章排行的显示方法">WordPress 技巧：月度文章排行的显示方法</a> (39)<br /><small>很多个人博客都习惯在侧栏显示出月度文章排行或年度文章排行，这种显示方式可以直接增加网友访问博...</small></li><li><a href="http://www.yzznl.cn/archives/wordpress-3-1-3.html" title="升级到 WordPress 3.1.3">升级到 WordPress 3.1.3</a> (37)<br /><small>WordPress 的更新频率越来越不可思议，昨天在后台看到了 WordPress 3.1....</small></li><li><a href="http://www.yzznl.cn/archives/canonical.html" title="canonical 标签介绍">canonical 标签介绍</a> (14)<br /><small>rel="canonical" 这个标签已经推出很久了，canonical 是 Google...</small></li><li><a href="http://www.yzznl.cn/archives/remove-wp-toolbar.html" title="快速去掉 WordPress 3.1 的工具栏">快速去掉 WordPress 3.1 的工具栏</a> (18)<br /><small>更新到 WordPress 3.1 版本的朋友们，可能发现最大的改善就是多了一个工具栏，它可...</small></li></ul><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress 3.0 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordads.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291919.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 推出语音博客功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-voice-blog.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordads.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 推出语音博客功能</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 3.0.1 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-301-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordads.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0.1 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="详解 WordPress 目录下的 core 文件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-core-file.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordads.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291580.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">详解 WordPress 目录下的 core 文件</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="使用 WordPress 定时发布文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-timed-release.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordads.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290600.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用 WordPress 定时发布文章</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yzznl.cn/archives/wordads.html/feed</wfw:commentRss>
		<slash:comments>41</slash:comments>
		</item>
		<item>
		<title>WordPress 不用插件防垃圾评论</title>
		<link>http://www.yzznl.cn/archives/wp-spam.html</link>
		<comments>http://www.yzznl.cn/archives/wp-spam.html#comments</comments>
		<pubDate>Sat, 27 Aug 2011 06:37:24 +0000</pubDate>
		<dc:creator>园子</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.yzznl.cn/?p=43113</guid>
		<description><![CDATA[其实在很早的时候园子就开始使用 Willin 大师的小墙替代了防垃圾评论插件了，这个小墙的功能非常强大，使用之后可以过滤掉95%以上的英文垃圾评论。 之前园子使用自带的 Akismet 插件，自从上次遇到无法连接到服务器事件后，就完全抛弃了这个插件。毕竟插件多了对网站的速度也不是什么好事，于是就正式用上了伟大的小墙。 园子尝试过完全不用任何手段防垃圾评论，每天接收到的垃圾评论平均都在100条以上。所以，挑选一种适合自己网站的防垃圾评论方法还是很有必要的。 wordpress 不用插件防垃圾评论的方法 1.复制以下代码添加到你使用主题中的 functions.php 中 /* &#60;&#60;小牆&#62;&#62; Anti-Spam v1.82 by Willin Kan. 2010/12/16 最新修改 */ //建立 class anti_spam &#123; function anti_spam&#40;&#41; &#123; if &#40; !current_user_can&#40;'level_0'&#41; &#41; &#123; add_action&#40;'template_redirect', array&#40;$this, 'w_tb'&#41;, 1&#41;; add_action&#40;'init', array&#40;$this, 'gate'&#41;, 1&#41;; add_action&#40;'preprocess_comment', array&#40;$this, 'sink'&#41;, 1&#41;; &#125; &#125; //設欄位 function w_tb&#40;&#41; &#123; if &#40; is_singular&#40;&#41; [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress 评论者链接实现重定向跳转的方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-commentators-link-redirect.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-spam.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 评论者链接实现重定向跳转的方法</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="wordpress分页插件pagebar介绍" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-pagebar.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-spam.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4293861.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress分页插件pagebar介绍</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 反垃圾评论插件：Some Chinese Please" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fsome-chinese-please.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-spam.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290583.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 反垃圾评论插件：Some Chinese Please</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 3.0 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-spam.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291919.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 免插件实现评论排行榜" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Freview-ranking.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-spam.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290568.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 免插件实现评论排行榜</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>其实在很早的时候<span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/about" title="园子" rel="nofollow">园子</a></span>就开始使用 Willin 大师的小墙替代了防垃圾评论插件了，这个小墙的功能非常强大，使用之后可以<strong>过滤掉95%以上的英文垃圾评论</strong>。</p>
<p>之前园子使用自带的 Akismet 插件，自从上次遇到<a href="http://www.yzznl.cn/archives/akismet-error.html" title="Akismet 升级后无法连接到服务器，所有评论都需要审核">无法连接到服务器</a>事件后，就完全抛弃了这个插件。毕竟插件多了对网站的速度也不是什么好事，于是就正式用上了伟大的小墙。</p>
<p>园子尝试过完全不用任何手段防垃圾评论，每天接收到的垃圾评论平均都在100条以上。所以，挑选一种适合自己网站的防垃圾评论方法还是很有必要的。<br />
<span id="more-43113"></span></p>
<div id="attachment_43114" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.yzznl.cn/archives/wp-spam.html"><img src="http://www.yzznl.cn/wp-content/uploads/2011/08/spam.jpg" alt="Wordpress 不用插件防垃圾评论" title="Wordpress 不用插件防垃圾评论" width="600" height="300" class="size-full wp-image-43114" /></a><p class="wp-caption-text"><span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/category/wordpress" title="wordpress">wordpress</a></span> 不用插件防垃圾评论</p></div>
<h4>WordPress 不用插件防垃圾评论的方法</h4>
<p>1.复制以下代码添加到你使用主题中的 functions.php 中</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:Microsoft YaHei,Arial;"><span style="color: #666666; font-style: italic;">/* &lt;&lt;小牆&gt;&gt; Anti-Spam v1.82 by Willin Kan. 2010/12/16 最新修改 */</span>
<span style="color: #666666; font-style: italic;">//建立</span>
<span style="color: #000000; font-weight: bold;">class</span> anti_spam <span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">function</span> anti_spam<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>current_user_can<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'level_0'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_redirect'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'w_tb'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'init'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'gate'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'preprocess_comment'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'sink'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #666666; font-style: italic;">//設欄位</span>
  <span style="color: #000000; font-weight: bold;">function</span> w_tb<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_singular<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #990000;">ob_start</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">create_function</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'$input'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'return preg_replace(&quot;#textarea(.*?)name=([\&quot;\'])comment([\&quot;\'])(.+)/textarea&gt;#&quot;,
      &quot;textarea$1name=$2w$3$4/textarea&gt;&lt;textarea name=\&quot;comment\&quot; cols=\&quot;100%\&quot; rows=\&quot;4\&quot; style=\&quot;display:none\&quot;&gt;&lt;/textarea&gt;&quot;,$input);'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #666666; font-style: italic;">//檢查</span>
  <span style="color: #000000; font-weight: bold;">function</span> gate<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'w'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'comment'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'comment'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'w'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$request</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$referer</span> <span style="color: #339933;">=</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_REFERER'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>         ? <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_REFERER'</span><span style="color: #009900;">&#93;</span>         <span style="color: #339933;">:</span> <span style="color: #0000ff;">'隱瞞'</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$IP</span>      <span style="color: #339933;">=</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;HTTP_X_FORWARDED_FOR&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;HTTP_X_FORWARDED_FOR&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' (透過代理)'</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;REMOTE_ADDR&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$way</span>     <span style="color: #339933;">=</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'w'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>                      ? <span style="color: #0000ff;">'手動操作'</span>                       <span style="color: #339933;">:</span> <span style="color: #0000ff;">'未經評論表格'</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$spamcom</span> <span style="color: #339933;">=</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'comment'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>                ? <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'comment'</span><span style="color: #009900;">&#93;</span>                <span style="color: #339933;">:</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'spam_confirmed'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;請求: &quot;</span><span style="color: #339933;">.</span> <span style="color: #000088;">$request</span><span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>來路: &quot;</span><span style="color: #339933;">.</span> <span style="color: #000088;">$referer</span><span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>IP: &quot;</span><span style="color: #339933;">.</span> <span style="color: #000088;">$IP</span><span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>方式: &quot;</span><span style="color: #339933;">.</span> <span style="color: #000088;">$way</span><span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>內容: &quot;</span><span style="color: #339933;">.</span> <span style="color: #000088;">$spamcom</span><span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span> -- 記錄成功 --&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #666666; font-style: italic;">//處理</span>
  <span style="color: #000000; font-weight: bold;">function</span> sink<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$comment</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'spam_confirmed'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">in_array</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$comment</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'comment_type'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pingback'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'trackback'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//不管 Trackbacks/Pingbacks</span>
      <span style="color: #666666; font-style: italic;">//方法一: 直接擋掉, 將 die(); 前面兩斜線刪除即可.</span>
      <span style="color: #666666; font-style: italic;">//die();</span>
      <span style="color: #666666; font-style: italic;">//方法二: 標記為 spam, 留在資料庫檢查是否誤判.</span>
      add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pre_comment_approved'</span><span style="color: #339933;">,</span> <span style="color: #990000;">create_function</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'return &quot;spam&quot;;'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$comment</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'comment_content'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;[ 小牆判斷這是Spam! ]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'spam_confirmed'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$anti_spam</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> anti_spam<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// -- END ----------------------------------------</span></pre></div></div>

<p>2.上传之后即可使用，就是这么简单！</p>
<p>这个小墙对<strong>英文垃圾评论和那些不经过评论表单提交的评论</strong>很有效果，其实防御英文垃圾评论还有一个不错的插件：<a href="http://www.yzznl.cn/archives/some-chinese-please.html" title="WordPress 反垃圾评论插件：Some Chinese Please">Some Chinese Please</a>，安装后它要求用户必须在评论内容中输入中文才可以正常提交。</p>
<p>或者你可以在评论区域内增加一个简单的算术题验证，让用户在评论的时候需要填入正确的计算结果，<a href="http://www.yzznl.cn/archives/135.html" title="Math Comment Spam Protection Plugin – WordPress防垃圾评论插件">Math Comment Spam Protection</a> 插件可以实现，有兴趣的朋友可以试下。</p>
<h3  class="related_post_title">扩展阅读</h3><ul class="related_post"><li><a href="http://www.yzznl.cn/archives/wp-3-3.html" title="升级到 WordPress 3.3">升级到 WordPress 3.3</a> (15)<br /><small>登陆 WordPress 时发现有新新版本提示升级，没多想就直接升级到了最新的 WordPr...</small></li><li><a href="http://www.yzznl.cn/archives/wp-update.html" title="WordPress 技巧：更新时只更新核心文件">WordPress 技巧：更新时只更新核心文件</a> (13)<br /><small>使用 WordPress 的博友都知道，WordPress 在3.2版本之后，更新频率越来越...</small></li><li><a href="http://www.yzznl.cn/archives/wordads.html" title="WordPress 推出 WordAds 广告系统">WordPress 推出 WordAds 广告系统</a> (41)<br /><small>据 WordPress 官方消息，WordPress 已经推出 WordAds 广告系统，让...</small></li><li><a href="http://www.yzznl.cn/archives/wp-tougao.html" title="WordPress 不用插件实现在线投稿功能">WordPress 不用插件实现在线投稿功能</a> (31)<br /><small>很多网站上都设有在线投稿功能，在线投稿可以让其他读者的文章有机会发布在自己网站或博客上。这样...</small></li><li><a href="http://www.yzznl.cn/archives/wp-3-2.html" title="WordPress 3.2 中文版发布，后台界面有较大改进">WordPress 3.2 中文版发布，后台界面有较大改进</a> (54)<br /><small>等了些天终于盼来了 WordPress 3.2 中文版发布，园子安装试用后，感觉 WordP...</small></li><li><a href="http://www.yzznl.cn/archives/436.html" title="WordPress 最新禁用文章修订和自动保存的方法">WordPress 最新禁用文章修订和自动保存的方法</a> (20)<br /><small>WordPress 默认都带有文章修订和自动保存的功能，对于一些博主来说，不是很喜欢这些功能...</small></li><li><a href="http://www.yzznl.cn/archives/article-top.html" title="WordPress 技巧：月度文章排行的显示方法">WordPress 技巧：月度文章排行的显示方法</a> (39)<br /><small>很多个人博客都习惯在侧栏显示出月度文章排行或年度文章排行，这种显示方式可以直接增加网友访问博...</small></li><li><a href="http://www.yzznl.cn/archives/wordpress-3-1-3.html" title="升级到 WordPress 3.1.3">升级到 WordPress 3.1.3</a> (37)<br /><small>WordPress 的更新频率越来越不可思议，昨天在后台看到了 WordPress 3.1....</small></li><li><a href="http://www.yzznl.cn/archives/canonical.html" title="canonical 标签介绍">canonical 标签介绍</a> (14)<br /><small>rel="canonical" 这个标签已经推出很久了，canonical 是 Google...</small></li><li><a href="http://www.yzznl.cn/archives/remove-wp-toolbar.html" title="快速去掉 WordPress 3.1 的工具栏">快速去掉 WordPress 3.1 的工具栏</a> (18)<br /><small>更新到 WordPress 3.1 版本的朋友们，可能发现最大的改善就是多了一个工具栏，它可...</small></li></ul><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress 评论者链接实现重定向跳转的方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-commentators-link-redirect.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-spam.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 评论者链接实现重定向跳转的方法</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="wordpress分页插件pagebar介绍" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-pagebar.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-spam.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4293861.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress分页插件pagebar介绍</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 反垃圾评论插件：Some Chinese Please" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fsome-chinese-please.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-spam.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290583.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 反垃圾评论插件：Some Chinese Please</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 3.0 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-spam.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291919.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 免插件实现评论排行榜" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Freview-ranking.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-spam.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290568.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 免插件实现评论排行榜</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yzznl.cn/archives/wp-spam.html/feed</wfw:commentRss>
		<slash:comments>75</slash:comments>
		</item>
		<item>
		<title>WordPress 不用插件实现在线投稿功能</title>
		<link>http://www.yzznl.cn/archives/wp-tougao.html</link>
		<comments>http://www.yzznl.cn/archives/wp-tougao.html#comments</comments>
		<pubDate>Thu, 18 Aug 2011 09:40:47 +0000</pubDate>
		<dc:creator>园子</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.yzznl.cn/?p=43107</guid>
		<description><![CDATA[很多网站上都设有在线投稿功能，在线投稿可以让其他读者的文章有机会发布在自己网站或博客上。这样不仅可以加快文章的更新频率，而且还会充实自己的网站内容，可以说是一种快速扩充网站文章数量的一种好方法。本文园子与大家分享的是 wordpress 中不用插件实现在线投稿功能的方法。 一般使用 WordPress 的朋友实现在线投稿，多数会借助插件来实现，经常用到的插件有 submit post 或 ucan post。对于那些不喜欢使用插件的人来说，可以试试以下的方法。 注：以下代码和方法来自万戈同学，原文请点击这里。 WordPress 不用插件实现在线投稿功能 1.首先新建一个投稿页面模板，把主题中的 page.php 文件另存为 tougao.php，并在第一行的 1 &#60;?php 之后添加以下注释： 1 2 3 /* Template Name: 投稿模板 */ 2.搜索 tougao.php 文件中的 the_content(); 函数，把以下代码添加到后面： 1 2 3 4 5 6 7 8 9 10 11 12 13 14 &#60;form id=&#34;tougaoform&#34; method=&#34;post&#34; action=&#34;&#60;?php echo $_SERVER&#91;&#34;REQUEST_URI&#34;&#93;; ?&#62;&#34;&#62; [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="如何在 WordPress 中使用 jQuery" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fjquery-in-wordpress.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-tougao.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">如何在 WordPress 中使用 jQuery</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="使用 WordPress 定时发布文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-timed-release.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-tougao.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290600.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用 WordPress 定时发布文章</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="详解 WordPress 目录下的 core 文件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-core-file.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-tougao.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291580.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">详解 WordPress 目录下的 core 文件</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 外部链接在新窗口打开的方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-links-new-window.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-tougao.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 外部链接在新窗口打开的方法</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 3.0 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-tougao.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291919.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0 发布</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>很多网站上都设有在线投稿功能，在线投稿可以让其他读者的文章有机会发布在自己网站或博客上。这样不仅可以加快文章的更新频率，而且还会充实自己的网站内容，可以说是一种快速扩充网站文章数量的一种好方法。本文<span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/about" title="园子" rel="nofollow">园子</a></span>与大家分享的是<strong> <span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/category/wordpress" title="wordpress">wordpress</a></span> 中不用插件实现在线投稿功能的方法</strong>。<br />
<span id="more-43107"></span></p>
<p>一般使用 WordPress 的朋友实现在线投稿，多数会借助插件来实现，经常用到的插件有 submit post 或 ucan post。对于那些不喜欢使用插件的人来说，可以试试以下的方法。</p>
<p>注：以下代码和方法来自万戈同学，原文请<a rel="nofollow" href="http://wange.im/contribute-without-plugins-in-wordpress.html">点击这里</a>。</p>
<h4>WordPress 不用插件实现在线投稿功能</h4>
<p>1.首先新建一个投稿页面模板，把主题中的 page.php 文件另存为 tougao.php，并在第一行的</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:Microsoft YaHei,Arial;"><span style="color: #000000; font-weight: bold;">&lt;?php</span></pre></td></tr></table></div>

<p>之后添加以下注释：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:Microsoft YaHei,Arial;"><span style="color: #666666; font-style: italic;">/*
Template Name: 投稿模板
*/</span></pre></td></tr></table></div>

<p>2.搜索 tougao.php 文件中的 the_content(); 函数，把以下代码添加到后面：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code"><pre class="php" style="font-family:Microsoft YaHei,Arial;">&lt;form id=&quot;tougaoform&quot; method=&quot;post&quot; action=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;REQUEST_URI&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
        &lt;p&gt;&lt;input id=&quot;author&quot; type=&quot;text&quot; size=&quot;40&quot; value=&quot;&quot; name=&quot;tougao_authorname&quot; /&gt;&lt;label&gt;昵称（*必填）&lt;/label&gt;&lt;/p&gt;
        &lt;p&gt;&lt;input id=&quot;email&quot; type=&quot;text&quot; size=&quot;40&quot; value=&quot;&quot; name=&quot;tougao_authoremail&quot; /&gt;&lt;label&gt;邮箱（*必填）&lt;/label&gt;&lt;/p&gt;
        &lt;p&gt;&lt;input id=&quot;url&quot; type=&quot;text&quot; size=&quot;40&quot; value=&quot;&quot; name=&quot;tougao_authorblog&quot; /&gt;&lt;label&gt;您的博客/文章来源&lt;/label&gt;&lt;/p&gt;
        &lt;p&gt;&lt;input id=&quot;tougao_title&quot; type=&quot;text&quot; size=&quot;40&quot; value=&quot;&quot; name=&quot;tougao_title&quot; /&gt;&lt;label&gt;文章标题（*必填）&lt;/label&gt;&lt;/p&gt;
        &lt;p&gt;&lt;input id=&quot;tags&quot; type=&quot;text&quot; size=&quot;40&quot; value=&quot;&quot; name=&quot;tougao_tags&quot; /&gt;&lt;label&gt;文章标签（多个标签请用英文逗号 , 分开）&lt;/label&gt;&lt;/p&gt;
        &lt;p&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_dropdown_categories<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'show_option_none=请选择文章分类&amp;show_count=1&amp;hierarchical=1&amp;hide_empty=0'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;label&gt;文章分类（*必填）&lt;/label&gt;&lt;/p&gt;
        &lt;textarea rows=&quot;15&quot; cols=&quot;55&quot; id=&quot;tougao&quot; name=&quot;tougao_content&quot;&gt;&lt;/textarea&gt;
        &lt;p&gt;
        &lt;input type=&quot;hidden&quot; value=&quot;send&quot; name=&quot;tougao_form&quot; /&gt;
        &lt;input id=&quot;submit&quot; type=&quot;submit&quot; value=&quot;提交&quot; /&gt;
        &lt;input id=&quot;reset&quot; type=&quot;reset&quot; value=&quot;重填&quot; /&gt;
        &lt;/p&gt;
&lt;/form&gt;</pre></td></tr></table></div>

<p>3.在 tougao.php 文件中添加如下函数，添加到第一步中的注释代码后面就可以。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
</pre></td><td class="code"><pre class="php" style="font-family:Microsoft YaHei,Arial;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'tougao_form'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'tougao_form'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'send'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_COOKIE</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;tougao&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$_COOKIE</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;tougao&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">120</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        wp_die<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'您投稿也太勤快了吧，先歇会儿！'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #666666; font-style: italic;">//表单变量初始化</span>
    <span style="color: #000088;">$name</span> <span style="color: #339933;">=</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'tougao_authorname'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'tougao_authorname'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$email</span> <span style="color: #339933;">=</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'tougao_authoremail'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'tougao_authoremail'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$blog</span> <span style="color: #339933;">=</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'tougao_authorblog'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'tougao_authorblog'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'tougao_title'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'tougao_title'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$tags</span> <span style="color: #339933;">=</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'tougao_tags'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'tougao_tags'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$category</span> <span style="color: #339933;">=</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cat'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> ? <span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cat'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'tougao_content'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'tougao_content'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
    <span style="color: #666666; font-style: italic;">//表单项数据验证</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$name</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$name</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">20</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        wp_die<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'昵称必须填写，且不得超过20个长度'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$email</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$email</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">60</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$email</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        wp_die<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'邮箱必须填写，且不得超过60个长度，必须符合 Email 格式'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$title</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$title</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">100</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        wp_die<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'文章标题必须填写，且不得超过100个长度'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        wp_die<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'内容必须填写，且不得少于100个长度'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000088;">$tougao</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
        <span style="color: #0000ff;">'post_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$title</span><span style="color: #339933;">,</span>                <span style="color: #666666; font-style: italic;">//标题</span>
        <span style="color: #0000ff;">'post_content'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$content</span><span style="color: #339933;">,</span>            <span style="color: #666666; font-style: italic;">//内容</span>
        <span style="color: #0000ff;">'post_status'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'pending'</span><span style="color: #339933;">,</span>            <span style="color: #666666; font-style: italic;">//待审</span>
        <span style="color: #0000ff;">'tags_input'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$tags</span><span style="color: #339933;">,</span>                <span style="color: #666666; font-style: italic;">//标签</span>
        <span style="color: #0000ff;">'post_category'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$category</span><span style="color: #009900;">&#41;</span>    <span style="color: #666666; font-style: italic;">//分类</span>
    <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #666666; font-style: italic;">//将文章插入数据库</span>
    <span style="color: #000088;">$status</span> <span style="color: #339933;">=</span> wp_insert_post<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$tougao</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$status</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">/*
        //将自定义域写入最新待审文章
        global $wpdb;
        $myposts = $wpdb-&gt;get_results(&quot;
            SELECT ID
            FROM $wpdb-&gt;posts
            WHERE post_status = 'pending'
            AND post_type = 'post'
            ORDER BY post_date DESC
        &quot;);
        add_post_meta($myposts[0]-&gt;ID, 'cbs_postauthor', $name);    //插入投稿人昵称的自定义域
        if ( !empty($blog)) add_post_meta($myposts[0]-&gt;ID, 'cbs_posturl', $blog);    //插入投稿人网址的自定义域
    */</span>
        <span style="color: #990000;">setcookie</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;tougao&quot;</span><span style="color: #339933;">,</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">180</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        wp_die<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'投稿成功！'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'投稿成功！'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
        wp_die<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'投稿失败！'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'投稿失败！'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>到这一步就已经实现了 <strong>WordPress 不用插件实现在线投稿功能</strong>，具体效果可以看下361冷笑话大全网站上的在线投稿页面，<a href="http://361ku.com/p" title="在线投稿示例页面">点此进入</a>！</p>
<h3  class="related_post_title">扩展阅读</h3><ul class="related_post"><li><a href="http://www.yzznl.cn/archives/wp-3-3.html" title="升级到 WordPress 3.3">升级到 WordPress 3.3</a> (15)<br /><small>登陆 WordPress 时发现有新新版本提示升级，没多想就直接升级到了最新的 WordPr...</small></li><li><a href="http://www.yzznl.cn/archives/wp-update.html" title="WordPress 技巧：更新时只更新核心文件">WordPress 技巧：更新时只更新核心文件</a> (13)<br /><small>使用 WordPress 的博友都知道，WordPress 在3.2版本之后，更新频率越来越...</small></li><li><a href="http://www.yzznl.cn/archives/wordads.html" title="WordPress 推出 WordAds 广告系统">WordPress 推出 WordAds 广告系统</a> (41)<br /><small>据 WordPress 官方消息，WordPress 已经推出 WordAds 广告系统，让...</small></li><li><a href="http://www.yzznl.cn/archives/wp-spam.html" title="Wordpress 不用插件防垃圾评论">Wordpress 不用插件防垃圾评论</a> (75)<br /><small>其实在很早的时候园子就开始使用 Willin 大师的小墙替代了防垃圾评论插件了，这个小墙的功...</small></li><li><a href="http://www.yzznl.cn/archives/wp-3-2.html" title="WordPress 3.2 中文版发布，后台界面有较大改进">WordPress 3.2 中文版发布，后台界面有较大改进</a> (54)<br /><small>等了些天终于盼来了 WordPress 3.2 中文版发布，园子安装试用后，感觉 WordP...</small></li><li><a href="http://www.yzznl.cn/archives/436.html" title="WordPress 最新禁用文章修订和自动保存的方法">WordPress 最新禁用文章修订和自动保存的方法</a> (20)<br /><small>WordPress 默认都带有文章修订和自动保存的功能，对于一些博主来说，不是很喜欢这些功能...</small></li><li><a href="http://www.yzznl.cn/archives/article-top.html" title="WordPress 技巧：月度文章排行的显示方法">WordPress 技巧：月度文章排行的显示方法</a> (39)<br /><small>很多个人博客都习惯在侧栏显示出月度文章排行或年度文章排行，这种显示方式可以直接增加网友访问博...</small></li><li><a href="http://www.yzznl.cn/archives/wordpress-3-1-3.html" title="升级到 WordPress 3.1.3">升级到 WordPress 3.1.3</a> (37)<br /><small>WordPress 的更新频率越来越不可思议，昨天在后台看到了 WordPress 3.1....</small></li><li><a href="http://www.yzznl.cn/archives/canonical.html" title="canonical 标签介绍">canonical 标签介绍</a> (14)<br /><small>rel="canonical" 这个标签已经推出很久了，canonical 是 Google...</small></li><li><a href="http://www.yzznl.cn/archives/remove-wp-toolbar.html" title="快速去掉 WordPress 3.1 的工具栏">快速去掉 WordPress 3.1 的工具栏</a> (18)<br /><small>更新到 WordPress 3.1 版本的朋友们，可能发现最大的改善就是多了一个工具栏，它可...</small></li></ul><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="如何在 WordPress 中使用 jQuery" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fjquery-in-wordpress.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-tougao.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">如何在 WordPress 中使用 jQuery</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="使用 WordPress 定时发布文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-timed-release.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-tougao.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290600.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用 WordPress 定时发布文章</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="详解 WordPress 目录下的 core 文件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-core-file.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-tougao.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291580.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">详解 WordPress 目录下的 core 文件</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 外部链接在新窗口打开的方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-links-new-window.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-tougao.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 外部链接在新窗口打开的方法</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 3.0 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-tougao.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291919.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0 发布</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yzznl.cn/archives/wp-tougao.html/feed</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
		<item>
		<title>WordPress 3.2 中文版发布，后台界面有较大改进</title>
		<link>http://www.yzznl.cn/archives/wp-3-2.html</link>
		<comments>http://www.yzznl.cn/archives/wp-3-2.html#comments</comments>
		<pubDate>Tue, 05 Jul 2011 10:06:42 +0000</pubDate>
		<dc:creator>园子</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.yzznl.cn/?p=43085</guid>
		<description><![CDATA[等了些天终于盼来了 wordpress 3.2 中文版发布，园子安装试用后，感觉 WordPress 3.2 版本和以前的版本相比，无论是速度和界面上，都有了较大的改善和提升，也应了官方所说的此次升级重点是让 WordPress 变得更小、更快。 WordPress 3.2 的一些改进和增加的新功能 1.升级成功后进入后台第一感觉就是全新的设计，整体感觉非常清新，后台变得更加紧凑和实用，隐藏了一些平时不常用到的小功能。 2.还有个让人惊喜的改变就是全屏写作模式，在全屏模式中所有的模块、菜单、按钮等界面元素都会淡出，让我们可以在一个清净的环境中安静的创作。全屏模式下当你需要使用隐藏掉的按钮等功能时，只需要将鼠标移动到屏幕的上方，写作时常用的功能按钮就会出现。在全屏模式下按 F11 键还可以隐藏电脑的任务栏，从而实现真正意义的全屏模式。 3.除了可视化设计风格的改变，还有一些我们看不见的东西做了改善。比如说 3.2 版本有了一个基于 HTML5 构建的全新 Twenty Eleven（2011）主题。并且据说以后的每年都会推出一个全新的主题，如果你喜欢，这些主题还都是免费使用的。 4.在安装上，3.2 版本要求比以往的高了点，需要 PHP 5.2.4 及以上和 MySQL 5.0.15 及以上的版本的服务器才能安装。如果你的某个版本不支持，请联系你的空间商升级对应的软件版本。 5.增强了浏览器的兼容性。彻底告别了对 IE6 版本的支持。 其实还有不少的功能，等待你去发现，想折腾的朋友赶快升级吧！ 园子友情提醒，请升级前进行数据备份，这里有最安全的 WordPress 数据备份教程。 WordPress 3.2 中文版本下载 安装包下载（4.1MB） WordPress 3.2 中文版 &#124; 来自园子博客 扩展阅读升级到 WordPress 3.3 (15)登陆 WordPress 时发现有新新版本提示升级，没多想就直接升级到了最新的 WordPr...WordPress 技巧：更新时只更新核心文件 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress 3.0 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-2.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291919.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="使用 WordPress 定时发布文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-timed-release.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-2.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290600.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用 WordPress 定时发布文章</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 3.0.3 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-3-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-2.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0.3 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 3.0.1 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-301-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-2.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0.1 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="wordpress分页插件pagebar介绍" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-pagebar.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-2.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4293861.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress分页插件pagebar介绍</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>等了些天终于盼来了<strong> <span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/category/wordpress" title="wordpress">wordpress</a></span> 3.2 中文版发布</strong>，<span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/about" title="园子" rel="nofollow">园子</a></span>安装试用后，感觉 WordPress 3.2 版本和以前的版本相比，无论是速度和界面上，都有了较大的改善和提升，也应了官方所说的此次升级重点是让 WordPress 变得更小、更快。<br />
<span id="more-43085"></span></p>
<h4>WordPress 3.2 的一些改进和增加的新功能</h4>
<p>1.升级成功后进入后台第一感觉就是<strong>全新的设计</strong>，整体感觉非常清新，后台变得更加紧凑和实用，隐藏了一些平时不常用到的小功能。</p>
<p>2.还有个让人惊喜的改变就是<strong>全屏写作模式</strong>，在全屏模式中所有的模块、菜单、按钮等界面元素都会淡出，让我们可以在一个清净的环境中安静的创作。全屏模式下当你需要使用隐藏掉的按钮等功能时，只需要将鼠标移动到屏幕的上方，写作时常用的功能按钮就会出现。在全屏模式下按 F11 键还可以隐藏电脑的任务栏，从而实现真正意义的全屏模式。</p>
<div id="attachment_43086" class="wp-caption aligncenter" style="width: 596px"><a href="http://www.yzznl.cn/archives/wp-3-2.html"><img src="http://www.yzznl.cn/wp-content/uploads/2011/07/WordPress32.jpg" alt="WordPress 3.2 全新的后台界面设计" title="WordPress 3.2 全新的后台界面设计" width="586" height="356" class="size-full wp-image-43086" /></a><p class="wp-caption-text">WordPress 3.2 全新的后台界面设计</p></div>
<p>3.除了可视化设计风格的改变，还有一些我们看不见的东西做了改善。比如说 3.2 版本有了一个<strong>基于 HTML5 构建的全新 Twenty Eleven（2011）主题</strong>。并且据说以后的每年都会推出一个全新的主题，如果你喜欢，这些主题还都是免费使用的。</p>
<p>4.在安装上，3.2 版本要求比以往的高了点，需要 <strong>PHP 5.2.4 及以上和 MySQL 5.0.15 及以上</strong>的版本的服务器才能安装。如果你的某个版本不支持，请联系你的空间商升级对应的<span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/category/utility-software" title="软件">软件</a></span>版本。</p>
<p>5.增强了浏览器的兼容性。彻底<strong>告别了对 IE6 版本的支持</strong>。</p>
<p>其实还有不少的功能，等待你去发现，想折腾的朋友赶快升级吧！</p>
<p>园子友情提醒，请升级前进行数据备份，这里有<a href="http://www.yzznl.cn/archives/240.html" title="WordPress 数据备份教程">最安全的 WordPress 数据备份教程</a>。</p>
<h4>WordPress 3.2 中文版本下载</h4>
<p>安装包下载（4.1MB） <a rel="nofollow" href="http://cn.wordpress.org/wordpress-3.2-zh_CN.zip" title="WordPress 3.2 中文版下载">WordPress 3.2 中文版</a>   |   <a href="http://www.yzznl.cn/archives/wp-3-2.html" title="WordPress 3.2 中文版发布，后台界面有较大改进">来自园子博客</a></p>
<h3  class="related_post_title">扩展阅读</h3><ul class="related_post"><li><a href="http://www.yzznl.cn/archives/wp-3-3.html" title="升级到 WordPress 3.3">升级到 WordPress 3.3</a> (15)<br /><small>登陆 WordPress 时发现有新新版本提示升级，没多想就直接升级到了最新的 WordPr...</small></li><li><a href="http://www.yzznl.cn/archives/wp-update.html" title="WordPress 技巧：更新时只更新核心文件">WordPress 技巧：更新时只更新核心文件</a> (13)<br /><small>使用 WordPress 的博友都知道，WordPress 在3.2版本之后，更新频率越来越...</small></li><li><a href="http://www.yzznl.cn/archives/wordads.html" title="WordPress 推出 WordAds 广告系统">WordPress 推出 WordAds 广告系统</a> (41)<br /><small>据 WordPress 官方消息，WordPress 已经推出 WordAds 广告系统，让...</small></li><li><a href="http://www.yzznl.cn/archives/wp-spam.html" title="Wordpress 不用插件防垃圾评论">Wordpress 不用插件防垃圾评论</a> (75)<br /><small>其实在很早的时候园子就开始使用 Willin 大师的小墙替代了防垃圾评论插件了，这个小墙的功...</small></li><li><a href="http://www.yzznl.cn/archives/wp-tougao.html" title="WordPress 不用插件实现在线投稿功能">WordPress 不用插件实现在线投稿功能</a> (31)<br /><small>很多网站上都设有在线投稿功能，在线投稿可以让其他读者的文章有机会发布在自己网站或博客上。这样...</small></li><li><a href="http://www.yzznl.cn/archives/436.html" title="WordPress 最新禁用文章修订和自动保存的方法">WordPress 最新禁用文章修订和自动保存的方法</a> (20)<br /><small>WordPress 默认都带有文章修订和自动保存的功能，对于一些博主来说，不是很喜欢这些功能...</small></li><li><a href="http://www.yzznl.cn/archives/article-top.html" title="WordPress 技巧：月度文章排行的显示方法">WordPress 技巧：月度文章排行的显示方法</a> (39)<br /><small>很多个人博客都习惯在侧栏显示出月度文章排行或年度文章排行，这种显示方式可以直接增加网友访问博...</small></li><li><a href="http://www.yzznl.cn/archives/wordpress-3-1-3.html" title="升级到 WordPress 3.1.3">升级到 WordPress 3.1.3</a> (37)<br /><small>WordPress 的更新频率越来越不可思议，昨天在后台看到了 WordPress 3.1....</small></li><li><a href="http://www.yzznl.cn/archives/canonical.html" title="canonical 标签介绍">canonical 标签介绍</a> (14)<br /><small>rel="canonical" 这个标签已经推出很久了，canonical 是 Google...</small></li><li><a href="http://www.yzznl.cn/archives/remove-wp-toolbar.html" title="快速去掉 WordPress 3.1 的工具栏">快速去掉 WordPress 3.1 的工具栏</a> (18)<br /><small>更新到 WordPress 3.1 版本的朋友们，可能发现最大的改善就是多了一个工具栏，它可...</small></li></ul><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress 3.0 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-2.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291919.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="使用 WordPress 定时发布文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-timed-release.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-2.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290600.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用 WordPress 定时发布文章</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 3.0.3 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-3-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-2.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0.3 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 3.0.1 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-301-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-2.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0.1 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="wordpress分页插件pagebar介绍" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-pagebar.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-2.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4293861.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress分页插件pagebar介绍</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yzznl.cn/archives/wp-3-2.html/feed</wfw:commentRss>
		<slash:comments>54</slash:comments>
		</item>
		<item>
		<title>WordPress 最新禁用文章修订和自动保存的方法</title>
		<link>http://www.yzznl.cn/archives/436.html</link>
		<comments>http://www.yzznl.cn/archives/436.html#comments</comments>
		<pubDate>Fri, 17 Jun 2011 06:53:37 +0000</pubDate>
		<dc:creator>园子</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.yzznl.cn/?p=43068</guid>
		<description><![CDATA[wordpress 默认都带有文章修订和自动保存的功能，对于一些博主来说，不是很喜欢这些功能。主要是这些功能会在数据库中产生不少零碎的文件，占用空间。本文园子就与大家分享 WordPress 最新禁用文章修订和自动保存的方法。 先来解释下文章修订吧，文章修订就是每一次你修改文章的时候 WordPress 都会自动保存这些不同时间版本的文章状态和内容。自动保存很好理解，就是我们在写文章的时候隔几分钟就是自动保存草稿，以防出现各种意外时内容丢失。 在以前的文章中园子也介绍过禁用 WordPress 文章修订功能的方法，在现在看来有些繁琐了。本文提供的方法是从 zwwooooo 大虾那里看到的，原文请点击这里。 WordPress 最新禁用文章修订和自动保存的方法 打开你使用主题中的 functions.php 文件，把以下代码添加到此文件中保存即可。 1 2 3 4 5 6 /* 移除自动保存和修订版本 */ remove_action&#40;'pre_post_update', 'wp_save_post_revision' &#41;; add_action&#40; 'wp_print_scripts', 'disable_autosave' &#41;; function disable_autosave&#40;&#41; &#123; wp_deregister_script&#40;'autosave'&#41;; &#125; 经园子测试，以上代码在 WordPress 3.1 版本及更高版本都支持，其它版本的同学们可以自行测试下。 太简单了，就几行代码，那插件什么的，都去浮云吧！ 扩展阅读升级到 WordPress 3.3 (15)登陆 WordPress 时发现有新新版本提示升级，没多想就直接升级到了最新的 WordPr...WordPress 技巧：更新时只更新核心文件 (13)使用 WordPress 的博友都知道，WordPress 在3.2版本之后，更新频率越来越...WordPress [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="禁用 WordPress 文章修订功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2F288.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2F436.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">禁用 WordPress 文章修订功能</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="使用 WordPress 定时发布文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-timed-release.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2F436.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290600.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用 WordPress 定时发布文章</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 3.0 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2F436.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291919.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="wordpress分页插件pagebar介绍" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-pagebar.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2F436.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4293861.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress分页插件pagebar介绍</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="详解 WordPress 目录下的 core 文件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-core-file.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2F436.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291580.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">详解 WordPress 目录下的 core 文件</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/category/wordpress" title="wordpress">wordpress</a></span> 默认都带有文章修订和自动保存的功能，对于一些博主来说，不是很喜欢这些功能。主要是这些功能会在数据库中产生不少零碎的文件，占用空间。本文<span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/about" title="园子" rel="nofollow">园子</a></span>就与大家分享<strong> WordPress 最新禁用文章修订和自动保存的方法</strong>。<br />
<span id="more-43068"></span></p>
<p>先来解释下文章修订吧，文章修订就是每一次你修改文章的时候 WordPress 都会自动保存这些不同时间版本的文章状态和内容。自动保存很好理解，就是我们在写文章的时候隔几分钟就是自动保存草稿，以防出现各种意外时内容丢失。</p>
<p>在以前的文章中园子也介绍过<a title="禁用 WordPress 文章修订功能" href="http://www.yzznl.cn/archives/288.html">禁用 WordPress 文章修订功能的方法</a>，在现在看来有些繁琐了。本文提供的方法是从 zwwooooo 大虾那里看到的，原文请点击<a rel="nofollow" href="http://zww.me/archives/25457">这里</a>。</p>
<h4>WordPress 最新禁用文章修订和自动保存的方法</h4>
<p>打开你使用主题中的 functions.php 文件，把以下代码添加到此文件中保存即可。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:Microsoft YaHei,Arial;"><span style="color: #666666; font-style: italic;">/* 移除自动保存和修订版本 */</span>
remove_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pre_post_update'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'wp_save_post_revision'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'wp_print_scripts'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'disable_autosave'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">function</span> disable_autosave<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	wp_deregister_script<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'autosave'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>经园子测试，以上代码在 WordPress 3.1 版本及更高版本都支持，其它版本的同学们可以自行测试下。</p>
<p>太简单了，就几行代码，那插件什么的，都去浮云吧！</p>
<h3  class="related_post_title">扩展阅读</h3><ul class="related_post"><li><a href="http://www.yzznl.cn/archives/wp-3-3.html" title="升级到 WordPress 3.3">升级到 WordPress 3.3</a> (15)<br /><small>登陆 WordPress 时发现有新新版本提示升级，没多想就直接升级到了最新的 WordPr...</small></li><li><a href="http://www.yzznl.cn/archives/wp-update.html" title="WordPress 技巧：更新时只更新核心文件">WordPress 技巧：更新时只更新核心文件</a> (13)<br /><small>使用 WordPress 的博友都知道，WordPress 在3.2版本之后，更新频率越来越...</small></li><li><a href="http://www.yzznl.cn/archives/wordads.html" title="WordPress 推出 WordAds 广告系统">WordPress 推出 WordAds 广告系统</a> (41)<br /><small>据 WordPress 官方消息，WordPress 已经推出 WordAds 广告系统，让...</small></li><li><a href="http://www.yzznl.cn/archives/wp-spam.html" title="Wordpress 不用插件防垃圾评论">Wordpress 不用插件防垃圾评论</a> (75)<br /><small>其实在很早的时候园子就开始使用 Willin 大师的小墙替代了防垃圾评论插件了，这个小墙的功...</small></li><li><a href="http://www.yzznl.cn/archives/wp-tougao.html" title="WordPress 不用插件实现在线投稿功能">WordPress 不用插件实现在线投稿功能</a> (31)<br /><small>很多网站上都设有在线投稿功能，在线投稿可以让其他读者的文章有机会发布在自己网站或博客上。这样...</small></li><li><a href="http://www.yzznl.cn/archives/wp-3-2.html" title="WordPress 3.2 中文版发布，后台界面有较大改进">WordPress 3.2 中文版发布，后台界面有较大改进</a> (54)<br /><small>等了些天终于盼来了 WordPress 3.2 中文版发布，园子安装试用后，感觉 WordP...</small></li><li><a href="http://www.yzznl.cn/archives/article-top.html" title="WordPress 技巧：月度文章排行的显示方法">WordPress 技巧：月度文章排行的显示方法</a> (39)<br /><small>很多个人博客都习惯在侧栏显示出月度文章排行或年度文章排行，这种显示方式可以直接增加网友访问博...</small></li><li><a href="http://www.yzznl.cn/archives/wordpress-3-1-3.html" title="升级到 WordPress 3.1.3">升级到 WordPress 3.1.3</a> (37)<br /><small>WordPress 的更新频率越来越不可思议，昨天在后台看到了 WordPress 3.1....</small></li><li><a href="http://www.yzznl.cn/archives/canonical.html" title="canonical 标签介绍">canonical 标签介绍</a> (14)<br /><small>rel="canonical" 这个标签已经推出很久了，canonical 是 Google...</small></li><li><a href="http://www.yzznl.cn/archives/remove-wp-toolbar.html" title="快速去掉 WordPress 3.1 的工具栏">快速去掉 WordPress 3.1 的工具栏</a> (18)<br /><small>更新到 WordPress 3.1 版本的朋友们，可能发现最大的改善就是多了一个工具栏，它可...</small></li></ul><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="禁用 WordPress 文章修订功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2F288.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2F436.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">禁用 WordPress 文章修订功能</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="使用 WordPress 定时发布文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-timed-release.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2F436.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290600.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用 WordPress 定时发布文章</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 3.0 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2F436.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291919.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="wordpress分页插件pagebar介绍" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-pagebar.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2F436.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4293861.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress分页插件pagebar介绍</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="详解 WordPress 目录下的 core 文件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-core-file.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2F436.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291580.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">详解 WordPress 目录下的 core 文件</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yzznl.cn/archives/436.html/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>WordPress 技巧：月度文章排行的显示方法</title>
		<link>http://www.yzznl.cn/archives/article-top.html</link>
		<comments>http://www.yzznl.cn/archives/article-top.html#comments</comments>
		<pubDate>Fri, 03 Jun 2011 07:33:32 +0000</pubDate>
		<dc:creator>园子</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.yzznl.cn/?p=43061</guid>
		<description><![CDATA[很多个人博客都习惯在侧栏显示出月度文章排行或年度文章排行，这种显示方式可以直接增加网友访问博客时对博客一些热门文章的关注度。本文与大家分享如何在侧栏显示出月度文章排行。 这里说的文章排行是指评论最多的文章，而不是浏览量最多的文章。评论多也就是关注度高，园子认为这才叫热门。如果你想完全按照文章的浏览次数来显示，建议你看下：WordPress 年度月度博客文章统计插件使用方法。 这个方法来源于 zwwooooo 的某段时间内最热文章，原文请点击这里。 我喜欢他提供的方法最主要的原因是使用比较灵活，可以自己定义某一段时间内热门文章排行的显示，你可以设置成一个月或两三个月的。 wordpress 技巧：月度文章排行的显示方法 1.把以下代码添加到你主题文件的 functions.php 里面。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 /* 某段时间内最热文章 * Reference: http://www.wprecipes.com/rarst-asked-how-to-get-most-commented-posts-of-the-week * Edit: zwwooooo */ function most_comm_posts&#40;$days=7, $nums=10&#41; &#123; //$days参数限制时间值，单位为‘天’，默认是7天；$nums是要显示文章数量 global $wpdb; $today = date&#40;&#34;Y-m-d [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="使用 WordPress 定时发布文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-timed-release.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Farticle-top.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290600.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用 WordPress 定时发布文章</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 年度月度博客文章统计插件使用方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-plug-year.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Farticle-top.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 年度月度博客文章统计插件使用方法</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 3.0 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Farticle-top.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291919.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress CommentLuv 插件：同步显示评论者的最新文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2F386.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Farticle-top.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4292092.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress CommentLuv 插件：同步显示评论者的最新文章</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="wordpress的一些快捷键" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-some-of-the-shortcuts.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Farticle-top.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress的一些快捷键</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>很多个人博客都习惯在侧栏显示出月度文章排行或年度文章排行，这种显示方式可以直接增加网友访问博客时对博客一些热门文章的关注度。本文与大家分享<strong>如何在侧栏显示出月度文章排行</strong>。</p>
<p>这里说的文章排行是指评论最多的文章，而不是浏览量最多的文章。评论多也就是关注度高，<span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/about" title="园子" rel="nofollow">园子</a></span>认为这才叫热门。如果你想完全按照文章的浏览次数来显示，建议你看下：<a title="WordPress 年度月度博客文章统计插件使用方法" href="http://www.yzznl.cn/archives/wordpress-plug-year.html">WordPress 年度月度博客文章统计插件使用方法</a>。<br />
<span id="more-43061"></span></p>
<p>这个方法来源于 zwwooooo 的某段时间内最热文章，原文请点击<a rel="nofollow" href="http://zww.me/archives/25453">这里</a>。</p>
<p>我喜欢他提供的方法最主要的原因是使用比较灵活，可以自己定义某一段时间内热门文章排行的显示，你可以设置成一个月或两三个月的。</p>
<h4><span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/category/wordpress" title="wordpress">wordpress</a></span> 技巧：月度文章排行的显示方法</h4>
<p>1.把以下代码添加到你主题文件的 functions.php 里面。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code"><pre class="php" style="font-family:Microsoft YaHei,Arial;"><span style="color: #666666; font-style: italic;">/* 某段时间内最热文章
 * Reference: http://www.wprecipes.com/rarst-asked-how-to-get-most-commented-posts-of-the-week
 * Edit: zwwooooo
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> most_comm_posts<span style="color: #009900;">&#40;</span><span style="color: #000088;">$days</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">7</span><span style="color: #339933;">,</span> <span style="color: #000088;">$nums</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">//$days参数限制时间值，单位为‘天’，默认是7天；$nums是要显示文章数量</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$today</span> <span style="color: #339933;">=</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Y-m-d H:i:s&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//获取今天日期时间</span>
	<span style="color: #000088;">$daysago</span> <span style="color: #339933;">=</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;Y-m-d H:i:s&quot;</span><span style="color: #339933;">,</span> <span style="color: #990000;">strtotime</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$today</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$days</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">24</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">60</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">60</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;">//Today - $days</span>
	<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_results</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT comment_count, ID, post_title, post_date FROM <span style="color: #006699; font-weight: bold;">$wpdb-&gt;posts</span> WHERE post_date BETWEEN '<span style="color: #006699; font-weight: bold;">$daysago</span>' AND '<span style="color: #006699; font-weight: bold;">$today</span>' ORDER BY comment_count DESC LIMIT 0 , <span style="color: #006699; font-weight: bold;">$nums</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;li&gt;None data.&lt;/li&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$topten</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$postid</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$topten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$topten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$commentcount</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$topten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_count</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$commentcount</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;li&gt;&lt;a href=&quot;'</span><span style="color: #339933;">.</span>get_permalink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$postid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/a&gt; ('</span><span style="color: #339933;">.</span><span style="color: #000088;">$commentcount</span><span style="color: #339933;">.</span><span style="color: #0000ff;">')&lt;/li&gt;'</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$output</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>2.在侧栏文件 sidebar.php 调用，代码如下：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:Microsoft YaHei,Arial;">&lt;h3&gt;近期最热文章&lt;/h3&gt;
&lt;ul&gt;
   <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'most_comm_posts'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> most_comm_posts<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;</pre></td></tr></table></div>

<p>园子友情提醒：most_comm_posts 函数后面的参数1是按天来计算的，你可以自定义天数，如30。参数2是文章显示的个数，如想显示10篇就写10即可。</p>
<p>例如：most_comm_posts(30, 10);意思就是30天之内评论最多的文章显示10篇。</p>
<h3  class="related_post_title">扩展阅读</h3><ul class="related_post"><li><a href="http://www.yzznl.cn/archives/wp-3-3.html" title="升级到 WordPress 3.3">升级到 WordPress 3.3</a> (15)<br /><small>登陆 WordPress 时发现有新新版本提示升级，没多想就直接升级到了最新的 WordPr...</small></li><li><a href="http://www.yzznl.cn/archives/wp-update.html" title="WordPress 技巧：更新时只更新核心文件">WordPress 技巧：更新时只更新核心文件</a> (13)<br /><small>使用 WordPress 的博友都知道，WordPress 在3.2版本之后，更新频率越来越...</small></li><li><a href="http://www.yzznl.cn/archives/wordads.html" title="WordPress 推出 WordAds 广告系统">WordPress 推出 WordAds 广告系统</a> (41)<br /><small>据 WordPress 官方消息，WordPress 已经推出 WordAds 广告系统，让...</small></li><li><a href="http://www.yzznl.cn/archives/wp-spam.html" title="Wordpress 不用插件防垃圾评论">Wordpress 不用插件防垃圾评论</a> (75)<br /><small>其实在很早的时候园子就开始使用 Willin 大师的小墙替代了防垃圾评论插件了，这个小墙的功...</small></li><li><a href="http://www.yzznl.cn/archives/wp-tougao.html" title="WordPress 不用插件实现在线投稿功能">WordPress 不用插件实现在线投稿功能</a> (31)<br /><small>很多网站上都设有在线投稿功能，在线投稿可以让其他读者的文章有机会发布在自己网站或博客上。这样...</small></li><li><a href="http://www.yzznl.cn/archives/wp-3-2.html" title="WordPress 3.2 中文版发布，后台界面有较大改进">WordPress 3.2 中文版发布，后台界面有较大改进</a> (54)<br /><small>等了些天终于盼来了 WordPress 3.2 中文版发布，园子安装试用后，感觉 WordP...</small></li><li><a href="http://www.yzznl.cn/archives/436.html" title="WordPress 最新禁用文章修订和自动保存的方法">WordPress 最新禁用文章修订和自动保存的方法</a> (20)<br /><small>WordPress 默认都带有文章修订和自动保存的功能，对于一些博主来说，不是很喜欢这些功能...</small></li><li><a href="http://www.yzznl.cn/archives/wordpress-3-1-3.html" title="升级到 WordPress 3.1.3">升级到 WordPress 3.1.3</a> (37)<br /><small>WordPress 的更新频率越来越不可思议，昨天在后台看到了 WordPress 3.1....</small></li><li><a href="http://www.yzznl.cn/archives/canonical.html" title="canonical 标签介绍">canonical 标签介绍</a> (14)<br /><small>rel="canonical" 这个标签已经推出很久了，canonical 是 Google...</small></li><li><a href="http://www.yzznl.cn/archives/remove-wp-toolbar.html" title="快速去掉 WordPress 3.1 的工具栏">快速去掉 WordPress 3.1 的工具栏</a> (18)<br /><small>更新到 WordPress 3.1 版本的朋友们，可能发现最大的改善就是多了一个工具栏，它可...</small></li></ul><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="使用 WordPress 定时发布文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-timed-release.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Farticle-top.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290600.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用 WordPress 定时发布文章</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 年度月度博客文章统计插件使用方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-plug-year.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Farticle-top.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 年度月度博客文章统计插件使用方法</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 3.0 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Farticle-top.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291919.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress CommentLuv 插件：同步显示评论者的最新文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2F386.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Farticle-top.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4292092.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress CommentLuv 插件：同步显示评论者的最新文章</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="wordpress的一些快捷键" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-some-of-the-shortcuts.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Farticle-top.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress的一些快捷键</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yzznl.cn/archives/article-top.html/feed</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
		<item>
		<title>升级到 WordPress 3.1.3</title>
		<link>http://www.yzznl.cn/archives/wordpress-3-1-3.html</link>
		<comments>http://www.yzznl.cn/archives/wordpress-3-1-3.html#comments</comments>
		<pubDate>Fri, 27 May 2011 03:07:32 +0000</pubDate>
		<dc:creator>园子</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.yzznl.cn/?p=43060</guid>
		<description><![CDATA[wordpress 的更新频率越来越不可思议，昨天在后台看到了 WordPress 3.1.3 版本的更新提示，今天就看到有了中文版本。手贱的点击了“自动升级”，更新到了 3.1.3 版本。 据园子了解，本次的更新主要涉及到以下的几个方面： 1.数个安全增强。 2.分类法查询的安全增强。 3.避免非作者用户的用户名的泄露。 4.媒体库功能的安全更新。 5.改进在设置不当的主机上的文件上传安全性能。 6.清理之前不成功的 WordPress 数据导入过程中产生的垃圾文件。 7.在主流浏览器中引入管理页面和登录页面“点击劫持”的保护功能。 升级 WordPress 需要注意的问题 其实也没有啥，安全起见最好把所有用到的插件停止后再升级，升级完成后再启用。 在后台自动升级失败的，可以到官网下载最新版本的 WordPress，通过 FTP 上传覆盖以前的版本即可。 扩展阅读升级到 WordPress 3.3 (15)登陆 WordPress 时发现有新新版本提示升级，没多想就直接升级到了最新的 WordPr...WordPress 技巧：更新时只更新核心文件 (13)使用 WordPress 的博友都知道，WordPress 在3.2版本之后，更新频率越来越...WordPress 推出 WordAds 广告系统 (41)据 WordPress 官方消息，WordPress 已经推出 WordAds 广告系统，让...Wordpress 不用插件防垃圾评论 (75)其实在很早的时候园子就开始使用 Willin 大师的小墙替代了防垃圾评论插件了，这个小墙的功...WordPress 不用插件实现在线投稿功能 (31)很多网站上都设有在线投稿功能，在线投稿可以让其他读者的文章有机会发布在自己网站或博客上。这样...WordPress 3.2 中文版发布，后台界面有较大改进 (54)等了些天终于盼来了 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="使用 WordPress 定时发布文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-timed-release.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-1-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290600.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用 WordPress 定时发布文章</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="wordpress分页插件pagebar介绍" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-pagebar.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-1-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4293861.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress分页插件pagebar介绍</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="升级到 WordPress 3.3" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-3.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-1-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/12/13/12295176.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">升级到 WordPress 3.3</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 3.0 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-1-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291919.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="wordpress的一些快捷键" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-some-of-the-shortcuts.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-1-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress的一些快捷键</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/category/wordpress" title="wordpress">wordpress</a></span> 的更新频率越来越不可思议，昨天在后台看到了 <strong>WordPress 3.1.3 版本的更新提示</strong>，今天就看到有了中文版本。手贱的点击了“自动升级”，更新到了 3.1.3 版本。<br />
<span id="more-43060"></span></p>
<p><strong>据<span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/about" title="园子" rel="nofollow">园子</a></span>了解，本次的更新主要涉及到以下的几个方面：</strong></p>
<p>1.数个安全增强。<br />
2.分类法查询的安全增强。<br />
3.避免非作者用户的用户名的泄露。<br />
4.媒体库功能的安全更新。<br />
5.改进在设置不当的主机上的文件上传安全性能。<br />
6.清理之前不成功的 WordPress 数据导入过程中产生的垃圾文件。<br />
7.在主流浏览器中引入管理页面和登录页面“点击劫持”的保护功能。</p>
<h4>升级 WordPress 需要注意的问题</h4>
<p>其实也没有啥，安全起见最好把所有用到的插件停止后再升级，升级完成后再启用。</p>
<p>在后台自动升级失败的，可以到官网<a rel="nofollow" href="http://wordpress.org/latest.zip">下载最新版本的 WordPress</a>，通过 FTP 上传覆盖以前的版本即可。</p>
<h3  class="related_post_title">扩展阅读</h3><ul class="related_post"><li><a href="http://www.yzznl.cn/archives/wp-3-3.html" title="升级到 WordPress 3.3">升级到 WordPress 3.3</a> (15)<br /><small>登陆 WordPress 时发现有新新版本提示升级，没多想就直接升级到了最新的 WordPr...</small></li><li><a href="http://www.yzznl.cn/archives/wp-update.html" title="WordPress 技巧：更新时只更新核心文件">WordPress 技巧：更新时只更新核心文件</a> (13)<br /><small>使用 WordPress 的博友都知道，WordPress 在3.2版本之后，更新频率越来越...</small></li><li><a href="http://www.yzznl.cn/archives/wordads.html" title="WordPress 推出 WordAds 广告系统">WordPress 推出 WordAds 广告系统</a> (41)<br /><small>据 WordPress 官方消息，WordPress 已经推出 WordAds 广告系统，让...</small></li><li><a href="http://www.yzznl.cn/archives/wp-spam.html" title="Wordpress 不用插件防垃圾评论">Wordpress 不用插件防垃圾评论</a> (75)<br /><small>其实在很早的时候园子就开始使用 Willin 大师的小墙替代了防垃圾评论插件了，这个小墙的功...</small></li><li><a href="http://www.yzznl.cn/archives/wp-tougao.html" title="WordPress 不用插件实现在线投稿功能">WordPress 不用插件实现在线投稿功能</a> (31)<br /><small>很多网站上都设有在线投稿功能，在线投稿可以让其他读者的文章有机会发布在自己网站或博客上。这样...</small></li><li><a href="http://www.yzznl.cn/archives/wp-3-2.html" title="WordPress 3.2 中文版发布，后台界面有较大改进">WordPress 3.2 中文版发布，后台界面有较大改进</a> (54)<br /><small>等了些天终于盼来了 WordPress 3.2 中文版发布，园子安装试用后，感觉 WordP...</small></li><li><a href="http://www.yzznl.cn/archives/436.html" title="WordPress 最新禁用文章修订和自动保存的方法">WordPress 最新禁用文章修订和自动保存的方法</a> (20)<br /><small>WordPress 默认都带有文章修订和自动保存的功能，对于一些博主来说，不是很喜欢这些功能...</small></li><li><a href="http://www.yzznl.cn/archives/article-top.html" title="WordPress 技巧：月度文章排行的显示方法">WordPress 技巧：月度文章排行的显示方法</a> (39)<br /><small>很多个人博客都习惯在侧栏显示出月度文章排行或年度文章排行，这种显示方式可以直接增加网友访问博...</small></li><li><a href="http://www.yzznl.cn/archives/canonical.html" title="canonical 标签介绍">canonical 标签介绍</a> (14)<br /><small>rel="canonical" 这个标签已经推出很久了，canonical 是 Google...</small></li><li><a href="http://www.yzznl.cn/archives/remove-wp-toolbar.html" title="快速去掉 WordPress 3.1 的工具栏">快速去掉 WordPress 3.1 的工具栏</a> (18)<br /><small>更新到 WordPress 3.1 版本的朋友们，可能发现最大的改善就是多了一个工具栏，它可...</small></li></ul><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="使用 WordPress 定时发布文章" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-timed-release.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-1-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290600.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用 WordPress 定时发布文章</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="wordpress分页插件pagebar介绍" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-pagebar.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-1-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4293861.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress分页插件pagebar介绍</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="升级到 WordPress 3.3" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwp-3-3.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-1-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/12/13/12295176.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">升级到 WordPress 3.3</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="WordPress 3.0 发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-0-released.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-1-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291919.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 3.0 发布</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="wordpress的一些快捷键" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-some-of-the-shortcuts.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fwordpress-3-1-3.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress的一些快捷键</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yzznl.cn/archives/wordpress-3-1-3.html/feed</wfw:commentRss>
		<slash:comments>37</slash:comments>
		</item>
		<item>
		<title>canonical 标签介绍</title>
		<link>http://www.yzznl.cn/archives/canonical.html</link>
		<comments>http://www.yzznl.cn/archives/canonical.html#comments</comments>
		<pubDate>Thu, 24 Mar 2011 07:01:57 +0000</pubDate>
		<dc:creator>园子</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.yzznl.cn/?p=43017</guid>
		<description><![CDATA[rel=”canonical” 这个标签已经推出很久了，canonical 是 Google、雅虎、微软等搜索引擎一起推出的一个标签，它的主要作用是用来解决由于网址形式不同内容相同而造成的内容重复问题。这个标签对搜索引擎作用非常大，简单的说它可以让搜索引擎只抓取你想要强调的内容。 举个简单的例子，来看下如下的网址： 1 2 3 http://www.yzznl.cn/archives/2011-snow.html http://www.yzznl.cn/archives/2011-snow.html?comments=true http://www.yzznl.cn/archives/2011-snow.html?postcomment=true 这三个网址形式不同，第一个才是我们想显示给搜索引擎和用户的网址，但是打开它们网站的内容却是相同的。一般像这种状况搜索引擎是很难分辨出来哪个才是网站主想要强调的网址，这样会直接造成搜索引擎在你的站里面收录到大量重复的内容，现在我们通过 canonical 标签就可以解决这些棘手的问题了。 像上面的状况，我们只需要在网址的 head 区域添加如下代码： 1 &#60;link rel='canonical' href='http://www.yzznl.cn/archives/2011-snow.html' /&#62; 这样的话 Google 等搜索引擎最终都会只收录 canonical 标签指定的这个网址，搜索引擎会将其它页面作为重复内容，这些重复的内容不再参与页面的权重分配（如 Google 的 PR 值）。 wordpress 中使用 canonical 的方法 如果你使用的是 WordPress，只要版本是在 WordPress 2.9 及以上的，应该都已经默认支持 canonical 标签了。2.9 以前的版本可以手工添加以下代码到你使用主题的 header.php 文件的 head 区域即可： 1 2 3 &#60;?php if&#40;is_single&#40;&#41;&#41;&#123;?&#62; &#60;link rel=&#34;canonical&#34; href=&#34;&#60;?php [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Google AdSense 正式推出类别过滤功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fadsense-category-filter.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fcanonical.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290482.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Google AdSense 正式推出类别过滤功能</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="使用飞信定时给好友发短信" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Ffeixin-sms-timer.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fcanonical.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291122.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用飞信定时给好友发短信</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="Photoshop中两步打造浅景深效果" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2F301.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fcanonical.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290746.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Photoshop中两步打造浅景深效果</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="Gmail 推出优先收件箱功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fgmail-priority-inbox.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fcanonical.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/08/29/21177948.gif" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Gmail 推出优先收件箱功能</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="那些如钻石般的年华" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fdiamond-like-love.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fcanonical.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291895.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">那些如钻石般的年华</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>rel=”canonical” 这个标签已经推出很久了，canonical 是 Google、雅虎、微软等搜索引擎一起推出的一个标签，它的主要作用是<strong>用来解决由于网址形式不同内容相同而造成的内容重复问题</strong>。这个标签对搜索引擎作用非常大，简单的说它可以让搜索引擎只抓取你想要强调的内容。<br />
<span id="more-43017"></span></p>
<p>举个简单的例子，来看下如下的网址：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="html" style="font-family:Microsoft YaHei,Arial;">http://www.yzznl.cn/archives/2011-snow.html
http://www.yzznl.cn/archives/2011-snow.html?comments=true
http://www.yzznl.cn/archives/2011-snow.html?postcomment=true</pre></td></tr></table></div>

<p>这三个网址形式不同，第一个才是我们想显示给搜索引擎和用户的网址，但是打开它们网站的内容却是相同的。一般像这种状况搜索引擎是很难分辨出来哪个才是网站主想要强调的网址，这样会直接造成搜索引擎在你的站里面收录到大量重复的内容，现在我们通过 canonical 标签就可以解决这些棘手的问题了。</p>
<p>像上面的状况，我们只需要在网址的 head 区域添加如下代码：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html" style="font-family:Microsoft YaHei,Arial;">&lt;link rel='canonical' href='http://www.yzznl.cn/archives/2011-snow.html' /&gt;</pre></td></tr></table></div>

<p>这样的话 Google 等搜索引擎最终都会只收录 canonical 标签指定的这个网址，搜索引擎会将其它页面作为重复内容，这些重复的内容不再参与页面的权重分配（如 Google 的 PR 值）。</p>
<h4><span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/category/wordpress" title="wordpress">wordpress</a></span> 中使用 canonical 的方法</h4>
<p>如果你使用的是 WordPress，只要版本是在 WordPress 2.9 及以上的，应该都已经默认支持 canonical 标签了。2.9 以前的版本可以手工添加以下代码到你使用主题的 header.php 文件的 head 区域即可：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:Microsoft YaHei,Arial;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
    &lt;link rel=&quot;canonical&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_permalink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<h3  class="related_post_title">扩展阅读</h3><ul class="related_post"><li><a href="http://www.yzznl.cn/archives/wp-3-3.html" title="升级到 WordPress 3.3">升级到 WordPress 3.3</a> (15)<br /><small>登陆 WordPress 时发现有新新版本提示升级，没多想就直接升级到了最新的 WordPr...</small></li><li><a href="http://www.yzznl.cn/archives/wp-update.html" title="WordPress 技巧：更新时只更新核心文件">WordPress 技巧：更新时只更新核心文件</a> (13)<br /><small>使用 WordPress 的博友都知道，WordPress 在3.2版本之后，更新频率越来越...</small></li><li><a href="http://www.yzznl.cn/archives/wordads.html" title="WordPress 推出 WordAds 广告系统">WordPress 推出 WordAds 广告系统</a> (41)<br /><small>据 WordPress 官方消息，WordPress 已经推出 WordAds 广告系统，让...</small></li><li><a href="http://www.yzznl.cn/archives/wp-spam.html" title="Wordpress 不用插件防垃圾评论">Wordpress 不用插件防垃圾评论</a> (75)<br /><small>其实在很早的时候<span class='wp_keywordlink_affiliate'><a href="http://www.yzznl.cn/about" title="园子" rel="nofollow">园子</a></span>就开始使用 Willin 大师的小墙替代了防垃圾评论插件了，这个小墙的功...</small></li><li><a href="http://www.yzznl.cn/archives/wp-tougao.html" title="WordPress 不用插件实现在线投稿功能">WordPress 不用插件实现在线投稿功能</a> (31)<br /><small>很多网站上都设有在线投稿功能，在线投稿可以让其他读者的文章有机会发布在自己网站或博客上。这样...</small></li><li><a href="http://www.yzznl.cn/archives/wp-3-2.html" title="WordPress 3.2 中文版发布，后台界面有较大改进">WordPress 3.2 中文版发布，后台界面有较大改进</a> (54)<br /><small>等了些天终于盼来了 WordPress 3.2 中文版发布，园子安装试用后，感觉 WordP...</small></li><li><a href="http://www.yzznl.cn/archives/436.html" title="WordPress 最新禁用文章修订和自动保存的方法">WordPress 最新禁用文章修订和自动保存的方法</a> (20)<br /><small>WordPress 默认都带有文章修订和自动保存的功能，对于一些博主来说，不是很喜欢这些功能...</small></li><li><a href="http://www.yzznl.cn/archives/article-top.html" title="WordPress 技巧：月度文章排行的显示方法">WordPress 技巧：月度文章排行的显示方法</a> (39)<br /><small>很多个人博客都习惯在侧栏显示出月度文章排行或年度文章排行，这种显示方式可以直接增加网友访问博...</small></li><li><a href="http://www.yzznl.cn/archives/wordpress-3-1-3.html" title="升级到 WordPress 3.1.3">升级到 WordPress 3.1.3</a> (37)<br /><small>WordPress 的更新频率越来越不可思议，昨天在后台看到了 WordPress 3.1....</small></li><li><a href="http://www.yzznl.cn/archives/remove-wp-toolbar.html" title="快速去掉 WordPress 3.1 的工具栏">快速去掉 WordPress 3.1 的工具栏</a> (18)<br /><small>更新到 WordPress 3.1 版本的朋友们，可能发现最大的改善就是多了一个工具栏，它可...</small></li></ul><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="QQ秀，你关闭了吗？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2F354.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fcanonical.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4290869.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">QQ秀，你关闭了吗？</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="如何批量删除QQ好友" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fremove-qq-friend.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fcanonical.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4289771.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">如何批量删除QQ好友</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="乐铺的神秘礼物：阳光储存罐" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Flepu-sun-jar.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fcanonical.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291339.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">乐铺的神秘礼物：阳光储存罐</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="腾讯QQ动了谁的电脑？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fqq-moved-computer.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fcanonical.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4291573.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">腾讯QQ动了谁的电脑？</font>
                    </a>
                </td>
                <td width="106" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DCE3E9 !important;">
                    <a target="_blank" title="谷歌今日正式推出中文语音搜索" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2F344.html&from=http%3A%2F%2Fwww.yzznl.cn%2Farchives%2Fcanonical.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DCE3E9 !important; width: 100px !important; height: 100px !important;" src="http://static.wumii.com/site_images/2011/03/26/4292336.jpg" width="100px" height="100px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 106px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">谷歌今日正式推出中文语音搜索</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yzznl.cn/archives/canonical.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

