<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>《重新整理: willin简单头像缓存函数my_avatar()》的评论</title>
	<atom:link href="http://zww.me/archives/25594/feed" rel="self" type="application/rss+xml" />
	<link>http://zww.me/archives/25594</link>
	<description>因为喜欢所以折腾...无折腾不铁血！</description>
	<lastBuildDate>Wed, 22 May 2013 14:21:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>作者：zwwooooo</title>
		<link>http://zww.me/archives/25594/comment-page-2#comment-79460</link>
		<dc:creator>zwwooooo</dc:creator>
		<pubDate>Mon, 20 May 2013 07:37:18 +0000</pubDate>
		<guid isPermaLink="false">http://zww.me/?p=25594#comment-79460</guid>
		<description><![CDATA[&lt;a href=&quot;#comment-79430&quot; rel=&quot;nofollow&quot;&gt;@wp-lover &lt;/a&gt;
你说的情况我这貌似没问题，简单点吧：其实后台不需要缓存了，也就你自己一个人进去，在函数前面（第二种方法）加个判断括住：
&lt;pre&gt;if (!is_admin()){&lt;br /&gt;
第二种方法函数...&lt;br /&gt;
}&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p><a href="#comment-79430" rel="nofollow">@wp-lover </a><br />
你说的情况我这貌似没问题，简单点吧：其实后台不需要缓存了，也就你自己一个人进去，在函数前面（第二种方法）加个判断括住：</p>
<pre>if (!is_admin()){<br />
第二种方法函数...<br />
}</pre>
]]></content:encoded>
	</item>
	<item>
		<title>作者：wp-lover</title>
		<link>http://zww.me/archives/25594/comment-page-2#comment-79430</link>
		<dc:creator>wp-lover</dc:creator>
		<pubDate>Sun, 19 May 2013 05:43:21 +0000</pubDate>
		<guid isPermaLink="false">http://zww.me/?p=25594#comment-79430</guid>
		<description><![CDATA[hi,我也想重新整理avatar，可是用了方法一，网页直接打不开，用了方法2，网页可以打开，但好像有个人现象：

1、没有头像的邮箱评论后，在审核状态时，不显示图像，只有alt文字。
2、然后，随即刷新网页，出来了默认头像（自己上传的默认头像）。
-----
3、假设不操作第二部，即立即刷新网页，而是进入后台审核该评论，后台和前台的该AVATAR就显示成系统自带的默认头像了，不是自己上传的默认头像了。

不知道ZWW大哥有没有这样的状况，很是纠结，方法2可能有bug?

求解。谢谢谢！]]></description>
		<content:encoded><![CDATA[<p>hi,我也想重新整理avatar，可是用了方法一，网页直接打不开，用了方法2，网页可以打开，但好像有个人现象：</p>
<p>1、没有头像的邮箱评论后，在审核状态时，不显示图像，只有alt文字。<br />
2、然后，随即刷新网页，出来了默认头像（自己上传的默认头像）。<br />
-----<br />
3、假设不操作第二部，即立即刷新网页，而是进入后台审核该评论，后台和前台的该AVATAR就显示成系统自带的默认头像了，不是自己上传的默认头像了。</p>
<p>不知道ZWW大哥有没有这样的状况，很是纠结，方法2可能有bug?</p>
<p>求解。谢谢谢！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：常阳时光</title>
		<link>http://zww.me/archives/25594/comment-page-2#comment-75631</link>
		<dc:creator>常阳时光</dc:creator>
		<pubDate>Sun, 06 Jan 2013 12:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://zww.me/?p=25594#comment-75631</guid>
		<description><![CDATA[&lt;a href=&quot;#comment-70667&quot; rel=&quot;nofollow&quot;&gt;@JuniorTsui &lt;/a&gt;
&lt;blockquote&gt;
&lt;strong&gt;JuniorTsui: &lt;/strong&gt;我的avatar 是建立在网站的根目录了，但是当用户没有注册avatar时，还是使用的官方头像，并没有使用default.jpg,奇怪$e = preg_replace(&#039;/wordpress\//&#039;, &#039;&#039;, ABSPATH) . &#039;avatar/&#039; . $f . &#039;.jpg&#039;;这句话没看懂，尤其是/wordpress\//
&lt;/blockquote&gt;
我的也是，当用户没有注册avatar时，还是使用的官方头像，并没有使用default.jpg]]></description>
		<content:encoded><![CDATA[<p><a href="#comment-70667" rel="nofollow">@JuniorTsui </a></p>
<blockquote><p>
<strong>JuniorTsui: </strong>我的avatar 是建立在网站的根目录了，但是当用户没有注册avatar时，还是使用的官方头像，并没有使用default.jpg,奇怪$e = preg_replace('/wordpress\//', '', ABSPATH) . 'avatar/' . $f . '.jpg';这句话没看懂，尤其是/wordpress\//
</p></blockquote>
<p>我的也是，当用户没有注册avatar时，还是使用的官方头像，并没有使用default.jpg</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：七号</title>
		<link>http://zww.me/archives/25594/comment-page-2#comment-73160</link>
		<dc:creator>七号</dc:creator>
		<pubDate>Mon, 08 Oct 2012 12:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://zww.me/?p=25594#comment-73160</guid>
		<description><![CDATA[&lt;a href=&quot;#comment-73122&quot; rel=&quot;nofollow&quot;&gt;@zwwooooo &lt;/a&gt;是啊，首页，文章页都是调用同样的一个边栏，可文章页就是不行。我也不知道怎么回事...]]></description>
		<content:encoded><![CDATA[<p><a href="#comment-73122" rel="nofollow">@zwwooooo </a>是啊，首页，文章页都是调用同样的一个边栏，可文章页就是不行。我也不知道怎么回事...</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：zwwooooo</title>
		<link>http://zww.me/archives/25594/comment-page-2#comment-73122</link>
		<dc:creator>zwwooooo</dc:creator>
		<pubDate>Mon, 08 Oct 2012 12:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://zww.me/?p=25594#comment-73122</guid>
		<description><![CDATA[&lt;a href=&quot;#comment-72999&quot; rel=&quot;nofollow&quot;&gt;@七号 &lt;/a&gt;
首页？不是同样处理么]]></description>
		<content:encoded><![CDATA[<p><a href="#comment-72999" rel="nofollow">@七号 </a><br />
首页？不是同样处理么</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：七号</title>
		<link>http://zww.me/archives/25594/comment-page-2#comment-72999</link>
		<dc:creator>七号</dc:creator>
		<pubDate>Sun, 23 Sep 2012 10:54:57 +0000</pubDate>
		<guid isPermaLink="false">http://zww.me/?p=25594#comment-72999</guid>
		<description><![CDATA[我用了第二种方法，首页OK了，文章页还是不行，怎么回事呢？]]></description>
		<content:encoded><![CDATA[<p>我用了第二种方法，首页OK了，文章页还是不行，怎么回事呢？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：zwwooooo</title>
		<link>http://zww.me/archives/25594/comment-page-2#comment-72453</link>
		<dc:creator>zwwooooo</dc:creator>
		<pubDate>Tue, 21 Aug 2012 21:19:46 +0000</pubDate>
		<guid isPermaLink="false">http://zww.me/?p=25594#comment-72453</guid>
		<description><![CDATA[&lt;a href=&quot;#comment-72450&quot; rel=&quot;nofollow&quot;&gt;@languh &lt;/a&gt;
为了统一处理，所以直接生成，你当作对方有头像就不会心里不平衡了。]]></description>
		<content:encoded><![CDATA[<p><a href="#comment-72450" rel="nofollow">@languh </a><br />
为了统一处理，所以直接生成，你当作对方有头像就不会心里不平衡了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：languh</title>
		<link>http://zww.me/archives/25594/comment-page-2#comment-72450</link>
		<dc:creator>languh</dc:creator>
		<pubDate>Tue, 21 Aug 2012 21:16:16 +0000</pubDate>
		<guid isPermaLink="false">http://zww.me/?p=25594#comment-72450</guid>
		<description><![CDATA[请假下楼主，gravatar头像缓存到本地后，如果无头像的匿名用户回复，默认会复制一份default.jpg和邮箱地址合并匹配加密，重新生成产生一个新命名的头像文件，这个文件和default.jpg是一样的，但每次有匿名的就重新生成一个，感觉不太好，能不能改成根据邮箱地址验证，没有gravatar头像的就直接调用default.jpg，不再重新生成]]></description>
		<content:encoded><![CDATA[<p>请假下楼主，gravatar头像缓存到本地后，如果无头像的匿名用户回复，默认会复制一份default.jpg和邮箱地址合并匹配加密，重新生成产生一个新命名的头像文件，这个文件和default.jpg是一样的，但每次有匿名的就重新生成一个，感觉不太好，能不能改成根据邮箱地址验证，没有gravatar头像的就直接调用default.jpg，不再重新生成</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：zwwooooo</title>
		<link>http://zww.me/archives/25594/comment-page-2#comment-70735</link>
		<dc:creator>zwwooooo</dc:creator>
		<pubDate>Sat, 09 Jun 2012 15:31:56 +0000</pubDate>
		<guid isPermaLink="false">http://zww.me/?p=25594#comment-70735</guid>
		<description><![CDATA[&lt;a href=&quot;#comment-70667&quot; rel=&quot;nofollow&quot;&gt;@JuniorTsui &lt;/a&gt;
这些是提高兼容性的，也就是说，你的wp安装在wordpress目录的也能正常使用]]></description>
		<content:encoded><![CDATA[<p><a href="#comment-70667" rel="nofollow">@JuniorTsui </a><br />
这些是提高兼容性的，也就是说，你的wp安装在wordpress目录的也能正常使用</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：五毛党</title>
		<link>http://zww.me/archives/25594/comment-page-2#comment-70668</link>
		<dc:creator>五毛党</dc:creator>
		<pubDate>Wed, 06 Jun 2012 09:06:41 +0000</pubDate>
		<guid isPermaLink="false">http://zww.me/?p=25594#comment-70668</guid>
		<description><![CDATA[来看默认头像来的]]></description>
		<content:encoded><![CDATA[<p>来看默认头像来的</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Database Caching 5/17 queries in 0.008 seconds using memcached
Object Caching 326/334 objects using memcached

 Served from: zww.me @ 2013-05-22 23:07:04 by W3 Total Cache -->