<?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; wordpress2.7beta</title>
	<atom:link href="http://leotheme.cn/tag/wordpress27beta/feed" rel="self" type="application/rss+xml" />
	<link>http://leotheme.cn</link>
	<description>勤现在-乐将来</description>
	<lastBuildDate>Tue, 07 Feb 2012 07:06:17 +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>WordPress2.7beta版的用户退出问题</title>
		<link>http://leotheme.cn/wordpress/wordpress27beta-logout.html</link>
		<comments>http://leotheme.cn/wordpress/wordpress27beta-logout.html#comments</comments>
		<pubDate>Sat, 22 Nov 2008 18:21:00 +0000</pubDate>
		<dc:creator>Await</dc:creator>
				<category><![CDATA[WP相关]]></category>
		<category><![CDATA[wordpress2.7beta]]></category>
		<category><![CDATA[退出]]></category>

		<guid isPermaLink="false">http://leotheme.cn/?p=207</guid>
		<description><![CDATA[我想很多人都发现了这个问题，升级到2.7Beta版后。在文章评论那里的退出链接失效了，点击后并不能退出。其实发现这个问题很久了，但一直没去管它。今天终于决定看看是怎么回事，我们知道，后台的退出链接是有效的，点击退出后的链接地址是下面这样的形式： http://leotheme.cn/wp-login.php?action=logout&#38;_wpnonce=800341aac2 而所在的评论位置的退出链接形式是这样的： http://leotheme.cn/wp-login.php?action=logout 通过比较后我们发现后者少了&#038;_wpnonce=800341aac2这个参数。所以不能退出，为什么会少了这样一个参数呢，我们来看下源代码： &#60;a href=&#34;&#60;?php echo get_option('siteurl'); ?&#62;/wp-login.php?action=logout&#34; title=&#34;Log out of this account&#34;&#62;退出 &#38;raquo;&#60;/a&#62; 上面的代码是大多数主题作者使用的退出方法，链接地址本身就没有带那个参数。所以才不能正确地退出。知道了问题原因解决就简单了： 我们可以在上面的基础上加上那个参数：&#038;_wpnonce=800341aac2 使用新的函数: &#60;?php echo wp_logout_url(get_permalink()) ?&#62; 随机日志2008-10-29 -- 搜狐博客开放平台博客模板设计大赛 (0) 一、大赛宗旨 本次大赛是搜狐博客开放平台为广大设计人员、设计爱好者与搜狐博客用户举办的规模最大的一次模板设计竞赛，并准备了价值十万元的精美大奖和成为搜狐博客开放平台模板设计伙伴的机会，我...2008-08-21 -- Photoshop打造漂亮的光线效果 (4)从今天开始，没事的时候，我会写一些关于PS，WP等其他的小教程。一来是自己也可以练练手，二来为BLOG增加点内容。 先来一个PS的简单效果，由于我之前并没试过写教程，所以不知道写出来的东东能读不。先...2008-10-21 -- jQuery 对checkbox的操作 (5)很久没有写JQuery的文章了。今天来看下JQ对天Checkbox复选框的操作。 看下面的一个小例子。在这个例子中包括了以下几个功能 1. 全选 2. 取消全选 3. 选中所有奇数 ...2009-06-17 -- 5个不常用的Wordpress函数 (4)原文：5 Useful WordPress Functions You Didn’t Know Existed [...]<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="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress 2.7 框架[原文翻译]" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress27kuanjia.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress27beta-logout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.7 框架[原文翻译]</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题之Maxthon 2.0.2[08-08-11]" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpressthememaxthon202.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress27beta-logout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/04/22/6198872.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题之Maxthon 2.0.2[08-08-11]</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !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%2Fleotheme.cn%2Fwordpress%2Fwordpress-query-post-paged.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress27beta-logout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">解决wordpress分页问题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="主题Dreamy更新到v2.0 [06-18 00:08]" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpresstheme-dreamy2-0.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress27beta-logout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/04/22/6196911.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">主题Dreamy更新到v2.0 [06-18 00:08]</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !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%2Fleotheme.cn%2Fwordpress%2Fwordpress-comment-form-proof.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress27beta-logout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/04/22/6196493.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !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>我想很多人都发现了这个问题，升级到2.7Beta版后。在文章评论那里的退出链接失效了，点击后并不能退出。其实发现这个问题很久了，但一直没去管它。今天终于决定看看是怎么回事，我们知道，后台的退出链接是有效的，点击退出后的链接地址是下面这样的形式：</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Blue;">http</span><span style="color: Gray;">:</span><span style="color: #ffa500;">//leotheme.cn/wp-login.php?action=logout&amp;_wpnonce=800341aac2</span><span style="color: Gray;"></span></div></div>
<p><span id="more-207"></span><br />
而所在的评论位置的退出链接形式是这样的：</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Blue;">http</span><span style="color: Gray;">:</span><span style="color: #ffa500;">//leotheme.cn/wp-login.php?action=logout</span><span style="color: Gray;"></span></div></div>
<p>通过比较后我们发现后者少了<strong>&#038;_wpnonce=800341aac2</strong>这个参数。所以不能退出，为什么会少了这样一个参数呢，我们来看下源代码：</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Gray;">&lt;a href=&quot;</span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Green;">echo</span><span style="color: Gray;"> </span><span style="color: Blue;">get_option</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">siteurl</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Gray;">/wp-login.php?action=logout&quot; title=&quot;Log out of this account&quot;&gt;退出 &amp;raquo;&lt;/a&gt;</span></div></div>
<p>上面的代码是大多数主题作者使用的退出方法，链接地址本身就没有带那个参数。所以才不能正确地退出。知道了问题原因解决就简单了：</p>
<p>我们可以在上面的基础上加上那个参数：&#038;_wpnonce=800341aac2</p>
<p>使用新的函数:</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Green;">echo</span><span style="color: Gray;"> </span><span style="color: Blue;">wp_logout_url</span><span style="color: Olive;">(</span><span style="color: Blue;">get_permalink</span><span style="color: Olive;">())</span><span style="color: Gray;"> </span><span style="color: Blue;">?&gt;</span></div></div>
<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="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress 2.7 框架[原文翻译]" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress27kuanjia.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress27beta-logout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 2.7 框架[原文翻译]</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题之Maxthon 2.0.2[08-08-11]" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpressthememaxthon202.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress27beta-logout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/04/22/6198872.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题之Maxthon 2.0.2[08-08-11]</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !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%2Fleotheme.cn%2Fwordpress%2Fwordpress-query-post-paged.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress27beta-logout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">解决wordpress分页问题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="主题Dreamy更新到v2.0 [06-18 00:08]" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpresstheme-dreamy2-0.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress27beta-logout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/04/22/6196911.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">主题Dreamy更新到v2.0 [06-18 00:08]</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !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%2Fleotheme.cn%2Fwordpress%2Fwordpress-comment-form-proof.html&from=http%3A%2F%2Fleotheme.cn%2Fwordpress%2Fwordpress27beta-logout.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/04/22/6196493.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !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><h3  class="related_post_title">随机日志</h3><ul class="related_post"><li>2009-02-06 -- <a href="http://leotheme.cn/diary/buzhidaochushaming.html" title="不知道取个啥标题好!">不知道取个啥标题好!</a> (3)<br /><small>已经很久很久没写文章了，不是因为忙，一直没心情写。2009年又来了十多天了，有些事该忘记了。从今天开始BLOG将继续更新。不过最近可能不会有太多的时间写文章，公司的事现在虽然不是很忙，但WOPUS那边...</small></li><li>2009-07-02 -- <a href="http://leotheme.cn/wordpress/wpfunction/wp_list_categories.html" title="WordPress分类列表函数:wp_list_categories">WordPress分类列表函数:wp_list_categories</a> (9)<br /><small>wordpress的分类函数对于主题作者来说可能并不陌生，因为基本上我们一定会用到这个函数；在 Wordpress 中 wp_list_categories 是用来显示所有分类的链接列表，它有两种表示...</small></li><li>2008-11-22 -- <a href="http://leotheme.cn/wordpress/wordpress-themes-hacks.html" title="WordPress主题高级技巧">WordPress主题高级技巧</a> (8)<br /><small>WordPress 本来是作为一个blog或者blog平台开发的。但是现在WordPress变得越来越强大，你可以用它创建任何类型的网站，并把它当作内容管理系统（CMS）。 在本文中，我将与你分享一些...</small></li><li>2009-06-18 -- <a href="http://leotheme.cn/javascript/about-css-style.html" title="关于CSS的书写习惯">关于CSS的书写习惯</a> (7)<br /><small>其实每个人都有自己喜欢的书写格式习惯，我在刚学CSS的时候，什么都不知道，只是要实现什么效果，我后就写个ID或类进去。放哪个位置也不管，丢进去就行了。反正效果实现了；后来当需要修改某些地方的时候，才发...</small></li><li>2008-08-18 -- <a href="http://leotheme.cn/javascript/csshackhuizong.html" title="CSS-Hack汇总集合[持续更新]">CSS-Hack汇总集合[持续更新]</a> (0)<br /><small>屏蔽IE浏览器（也就是IE下不显示）
*:lang(zh) select {font:12px  !important;} /*FF的专用*/
select:empty {font:12px  !...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://leotheme.cn/wordpress/wordpress27beta-logout.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

