<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feed.feedsky.com/WordPressChinesePlanet" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/WordPressChinesePlanet" type="application/rss+xml"></fs:self_link><lastBuildDate>Tue, 08 May 2012 15:04:33 GMT</lastBuildDate><title>WordPress 火星</title><description>WordPress Chinese Planet</description><link>http://wfans.org/blog/planet</link><language>zh-CN</language><pubDate>Tue, 08 May 2012 15:04:33 GMT</pubDate><item><title>我爱水煮: WordPress 技巧：如何移除后台上传的的图片的宽度和高度参数</title><link>http://wfans.org/blog/?redirect=554</link><description>通过 WordPress 后台上传图片，并且将图片插入到日志中，WordPress 会自动生成的 &amp;#60;img&amp;#62; 的 html 标签中包含图片的宽度和高度参数，如果你使用的是响应式的 WordPress 主题，那么这个可能会造成一些问题。下面的这段代码可以解决这个问题。
将下面代码复制到当前主题的 functions.php 文件中：

add_filter( &amp;#8216; ...&lt;img src=&quot;http://www1.feedsky.com/t1/636020453/WordPressChinesePlanet/feedsky/s.gif?r=http://wfans.org/blog/?redirect=554&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Tue, 08 May 2012 23:04:33 +0800</pubDate><author>Denis</author><guid isPermaLink="false">http://fairyfish.net/?post_type=m&amp;p=3252</guid><dc:creator>Denis</dc:creator><fs:srclink>http://wfans.org/blog/?redirect=554</fs:srclink><fs:srcfeed>http://wfans.org/blog/?planet=feed</fs:srcfeed><fs:itemid>feedsky/WordPressChinesePlanet/~8037973/636020453/5044854</fs:itemid></item><item><title>我爱水煮: WordPress 技巧：如何判断一个插件是否激活</title><link>http://wfans.org/blog/?redirect=553</link><description>如果你写的插件需要调调用其他插件的函数，那么你首先需要判断下调用的插件是否已经激活了，可以通过在 functions.php 文件中加下面的代码来势判断，注意把下面代码中的插件的路径改成你要判断的插件的路径。

&amp;#60;?php
   if (is_plugin_active(&amp;#8216;plugin-directory/plugin-file.php&amp;#8217;)) {
      // the plugin is active
   }
?&amp;#62;
 ...&lt;img src=&quot;http://www1.feedsky.com/t1/636020454/WordPressChinesePlanet/feedsky/s.gif?r=http://wfans.org/blog/?redirect=553&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Sat, 05 May 2012 12:08:29 +0800</pubDate><author>Denis</author><guid isPermaLink="false">http://fairyfish.net/?post_type=m&amp;p=3251</guid><dc:creator>Denis</dc:creator><fs:srclink>http://wfans.org/blog/?redirect=553</fs:srclink><fs:srcfeed>http://wfans.org/blog/?planet=feed</fs:srcfeed><fs:itemid>feedsky/WordPressChinesePlanet/~8037973/636020454/5044854</fs:itemid></item><item><title>我爱水煮: WordPress 技巧：禁止插件更新提醒</title><link>http://wfans.org/blog/?redirect=552</link><description>这个技巧会阻止 WordPress 检查插件是否有有更新，这个技巧对于给客户建的网站非常有帮助，因为很可能你已经修改了插件，插件的更新将会让整个网站不能正常运行。
将下面的代码复制到当前主题的 functions.php 文件中。

&amp;#60;?php
remove_action( &amp;#8216;load-update-core.php&amp;#8217;, &amp;#8216;wp_update_plugins&amp;#8217; );
add_filter( &amp;#8216;pre_site_transient_up ...&lt;img src=&quot;http://www1.feedsky.com/t1/636020455/WordPressChinesePlanet/feedsky/s.gif?r=http://wfans.org/blog/?redirect=552&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Mon, 30 Apr 2012 16:33:00 +0800</pubDate><author>Denis</author><guid isPermaLink="false">http://fairyfish.net/?post_type=m&amp;p=3247</guid><dc:creator>Denis</dc:creator><fs:srclink>http://wfans.org/blog/?redirect=552</fs:srclink><fs:srcfeed>http://wfans.org/blog/?planet=feed</fs:srcfeed><fs:itemid>feedsky/WordPressChinesePlanet/~8037973/636020455/5044854</fs:itemid></item><item><title>我爱水煮: WordPress 插件：iPhone/iPad 限时免费精选</title><link>http://wfans.org/blog/?redirect=551</link><description>iPhone/iPad 限时免费精选是由 App 每日推送 提供的一个 WordPress Widget 插件，可以在你的 WordPress 博客的侧边栏显示最新的 iPhone/iPad 的限时免费应用。
该插件安装很简单，解压后把 appdp-list 目录上传到 /wp-content/plugins，在后台激活 Appdp List 插件，到 主题 -&gt; 小工具 页面，把 iOS应用挂件 拖到左边的侧边栏里 ...&lt;img src=&quot;http://www1.feedsky.com/t1/636020456/WordPressChinesePlanet/feedsky/s.gif?r=http://wfans.org/blog/?redirect=551&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Sat, 14 Apr 2012 13:47:23 +0800</pubDate><author>Denis</author><guid isPermaLink="false">http://fairyfish.net/?post_type=m&amp;p=3246</guid><dc:creator>Denis</dc:creator><fs:srclink>http://wfans.org/blog/?redirect=551</fs:srclink><fs:srcfeed>http://wfans.org/blog/?planet=feed</fs:srcfeed><fs:itemid>feedsky/WordPressChinesePlanet/~8037973/636020456/5044854</fs:itemid></item><item><title>我爱水煮: 国外前 100 名博客半数使用 WordPress</title><link>http://wfans.org/blog/?redirect=550</link><description>网站监控公司 Pingdom 在调查中发现，在博客搜索引擎 Technorati 索引的博客中，排名前 100 的博客有 49 家博客在使用 WordPress，远远超出其它博客系统的使用量。
WordPress 在 2009 年在前 100 名博客中的使用量才 32%，Typepad 当时排在第二位，时至今日在排名中却再也看不到它的身影，在 2009 年曾经有 12家前 100 ...&lt;img src=&quot;http://www1.feedsky.com/t1/636020457/WordPressChinesePlanet/feedsky/s.gif?r=http://wfans.org/blog/?redirect=550&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Thu, 12 Apr 2012 23:43:43 +0800</pubDate><author>Denis</author><guid isPermaLink="false">http://fairyfish.net/?p=3243</guid><dc:creator>Denis</dc:creator><fs:srclink>http://wfans.org/blog/?redirect=550</fs:srclink><fs:srcfeed>http://wfans.org/blog/?planet=feed</fs:srcfeed><fs:itemid>feedsky/WordPressChinesePlanet/~8037973/636020457/5044854</fs:itemid></item><item><title>NeoEase: 启用图床, 图片迁至 WordPress</title><link>http://wfans.org/blog/?redirect=549</link><description>上次写完《使用图床还是将图片上传到 WordPress?》后, 我已经决定要将图片迁回 WordPress 进行管理. 上月将网站搬到 VPS 上, 流量上已没有压力, 所以最近逐渐将图片转到 WordPress 中, 今日全部图片终于被迁移完成.


将图片搬回 WordPress 对我来说是为了解决某些一直存在的问题.


保证图片的可用性

我使用 ...&lt;img src=&quot;http://www1.feedsky.com/t1/636020458/WordPressChinesePlanet/feedsky/s.gif?r=http://wfans.org/blog/?redirect=549&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Thu, 29 Mar 2012 21:59:34 +0800</pubDate><author>mg12</author><guid isPermaLink="false">http://www.neoease.com/?p=3486</guid><dc:creator>mg12</dc:creator><fs:srclink>http://wfans.org/blog/?redirect=549</fs:srclink><fs:srcfeed>http://wfans.org/blog/?planet=feed</fs:srcfeed><fs:itemid>feedsky/WordPressChinesePlanet/~8037973/636020458/5044854</fs:itemid></item><item><title>我爱水煮: 多说：最好的社会化评论服务</title><link>http://wfans.org/blog/?redirect=548</link><description>经常访问我爱水煮鱼的同学可能已经注意到我爱水煮鱼的评论系统已经替换成了多说这个第三方社会化评论服务，今天就给大家介绍下这块目前我认为国内最好的社会化评论服务，没有之一。

为什么第三方社会化服务
对于中小博客来说，如何吸引用户留言以及留言之后的互动是非常困难的，我曾经开 ...&lt;img src=&quot;http://www1.feedsky.com/t1/636020459/WordPressChinesePlanet/feedsky/s.gif?r=http://wfans.org/blog/?redirect=548&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Sun, 11 Mar 2012 22:45:10 +0800</pubDate><author>Denis</author><guid isPermaLink="false">http://fairyfish.net/?post_type=article&amp;p=3234</guid><dc:creator>Denis</dc:creator><fs:srclink>http://wfans.org/blog/?redirect=548</fs:srclink><fs:srcfeed>http://wfans.org/blog/?planet=feed</fs:srcfeed><fs:itemid>feedsky/WordPressChinesePlanet/~8037973/636020459/5044854</fs:itemid></item><item><title>我爱水煮: WordPress 技巧：使用 get_post_types 获取自定义日志类型</title><link>http://wfans.org/blog/?redirect=547</link><description>如果你给 WordPress 定义了几个自定义日志类型（Custom Post Type）之后，如果其他插件需要获取自定义日志类型的时候，怎么获取呢？我定义了下面这个函数，去掉了内置的‘post’，‘page’，‘attachment’，‘revision’，‘nav_menu_item’，直接获取自定义的日志类型：

function wpjam_get_custom_post_types(){
	$args=array ...&lt;img src=&quot;http://www1.feedsky.com/t1/636020460/WordPressChinesePlanet/feedsky/s.gif?r=http://wfans.org/blog/?redirect=547&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Sun, 11 Mar 2012 18:35:01 +0800</pubDate><author>Denis</author><guid isPermaLink="false">http://fairyfish.net/?post_type=m&amp;p=3236</guid><dc:creator>Denis</dc:creator><fs:srclink>http://wfans.org/blog/?redirect=547</fs:srclink><fs:srcfeed>http://wfans.org/blog/?planet=feed</fs:srcfeed><fs:itemid>feedsky/WordPressChinesePlanet/~8037973/636020460/5044854</fs:itemid></item><item><title>我爱水煮: WordPress 插件开发技巧：在插件页面添加快捷设置链接</title><link>http://wfans.org/blog/?redirect=546</link><description>在 WordPress 插件页面，很多插件启动之后，都会出现一个设置的链接，让你直接到该插件的设置页面进行设置。下面是实现的案例代码：

add_filter(&amp;#8216;plugin_action_links&amp;#8217;, &amp;#8216;add_qzone_settings_link&amp;#8217;, 10, 2 );
function add_qzone_settings_link($links, $file) {
	static $this_plugin;
	if (!$this_plugin) $this_plugin = plugin_basename(__FILE__);

	if ($file == ...&lt;img src=&quot;http://www1.feedsky.com/t1/636020461/WordPressChinesePlanet/feedsky/s.gif?r=http://wfans.org/blog/?redirect=546&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Fri, 09 Mar 2012 23:18:01 +0800</pubDate><author>Denis</author><guid isPermaLink="false">http://fairyfish.net/?post_type=m&amp;p=3235</guid><dc:creator>Denis</dc:creator><fs:srclink>http://wfans.org/blog/?redirect=546</fs:srclink><fs:srcfeed>http://wfans.org/blog/?planet=feed</fs:srcfeed><fs:itemid>feedsky/WordPressChinesePlanet/~8037973/636020461/5044854</fs:itemid></item><item><title>我爱水煮: 防止 Email 地址被机器收集的 WordPress 插件：Antispambot ShortCode</title><link>http://wfans.org/blog/?redirect=543</link><description>让邮件地址不被机器收集
有时候想在博客中向用户留言告诉他们读者的 email 地址，让用户直接通过 email 地址联系，但是这样简单展示 email 地址被机器收集，然后收到一大堆 spam。
所以我就写个 WordPress 插件：Antispambot ShortCode，让博主使用 WordPress Shortcode 方式在日志内容中输入 email 地址，向用户正确 ...&lt;img src=&quot;http://www1.feedsky.com/t1/636020462/WordPressChinesePlanet/feedsky/s.gif?r=http://wfans.org/blog/?redirect=543&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Tue, 06 Mar 2012 21:35:56 +0800</pubDate><author>Denis</author><guid isPermaLink="false">http://fairyfish.net/?post_type=project&amp;p=3161</guid><dc:creator>Denis</dc:creator><fs:srclink>http://wfans.org/blog/?redirect=543</fs:srclink><fs:srcfeed>http://wfans.org/blog/?planet=feed</fs:srcfeed><fs:itemid>feedsky/WordPressChinesePlanet/~8037973/636020462/5044854</fs:itemid></item></channel></rss>
