<?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>评论：如何在 BuddyPress 中启用 WP 原生的 theme editor</title>
	<atom:link href="http://henkude.com/blog/2009/11/17/%e5%a6%82%e4%bd%95%e5%9c%a8-buddypress-%e4%b8%ad%e5%90%af%e7%94%a8-wp-%e5%8e%9f%e7%94%9f%e7%9a%84-theme-editor/feed/" rel="self" type="application/rss+xml" />
	<link>http://henkude.com/blog/2009/11/17/%e5%a6%82%e4%bd%95%e5%9c%a8-buddypress-%e4%b8%ad%e5%90%af%e7%94%a8-wp-%e5%8e%9f%e7%94%9f%e7%9a%84-theme-editor/</link>
	<description>hen - very, ku - cool, de - 的</description>
	<lastBuildDate>Thu, 22 Apr 2010 08:20:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>由：henkude &#8212; Blog &#8212; 在 BuddyPress 中启用原生 theme editor 和 plugin editor 的最佳方案</title>
		<link>http://henkude.com/blog/2009/11/17/%e5%a6%82%e4%bd%95%e5%9c%a8-buddypress-%e4%b8%ad%e5%90%af%e7%94%a8-wp-%e5%8e%9f%e7%94%9f%e7%9a%84-theme-editor/comment-page-1/#comment-18</link>
		<dc:creator>henkude &#8212; Blog &#8212; 在 BuddyPress 中启用原生 theme editor 和 plugin editor 的最佳方案</dc:creator>
		<pubDate>Thu, 19 Nov 2009 06:41:39 +0000</pubDate>
		<guid isPermaLink="false">http://henkude.com/?p=71#comment-18</guid>
		<description>[...] 前面有介绍过如何在 BuddyPress 控制面板中唤回失落的 theme editor 和 pluin editor 链接，经过一番查询，终于寻获一个最安全的方案，无需触碰 core code，算是最好的 hack 了，实际上是用了 WPMU 默认加载  mu-plugins 的办法，步骤十分之简便，只需将下列代码添加到一个空的 PHP 文件: 12345&lt;?php add_action&#040; &#039;admin_init&#039;, create_function&#040;&#039;$pages&#039;, &#039;if(is_site_admin()) return remove_action(&quot;admin_init&quot;,&quot;disable_some_pages&quot;);&#039;&#041;,1&#041;; add_action&#040; &#039;_admin_menu&#039;, create_function&#040;&#039;$theme_menu&#039;, &#039;return add_theme_page( &quot;&lt;strong&gt;主题编辑器&lt;/strong&gt;&quot;, &quot;&lt;strong&gt;主题编辑器&lt;/strong&gt;&quot;, &quot;edit_themes&quot;, &quot;theme-editor.php&quot;);&#039; &#041;&#041;; add_action&#040; &#039;_admin_menu&#039;, create_function&#040;&#039;$plugin_menu&#039;, &#039;return add_submenu_page( &quot;plugins.php&quot;, &quot;&lt;strong&gt;插件编辑器&lt;/strong&gt;&quot;, &quot;&lt;strong&gt;插件编辑器&lt;/strong&gt;&quot;, &quot;edit_plugins&quot;, &quot;plugin-editor.php&quot;);&#039; &#041;&#041;; ?&gt; [...]</description>
		<content:encoded><![CDATA[<p>[...] 前面有介绍过如何在 BuddyPress 控制面板中唤回失落的 theme editor 和 pluin editor 链接，经过一番查询，终于寻获一个最安全的方案，无需触碰 core code，算是最好的 hack 了，实际上是用了 WPMU 默认加载  mu-plugins 的办法，步骤十分之简便，只需将下列代码添加到一个空的 PHP 文件: 12345&lt;?php add_action&#40; &#39;admin_init&#39;, create_function&#40;&#39;$pages&#39;, &#39;if(is_site_admin()) return remove_action(&quot;admin_init&quot;,&quot;disable_some_pages&quot;);&#39;&#41;,1&#41;; add_action&#40; &#39;_admin_menu&#39;, create_function&#40;&#39;$theme_menu&#39;, &#39;return add_theme_page( &quot;&lt;strong&gt;主题编辑器&lt;/strong&gt;&quot;, &quot;&lt;strong&gt;主题编辑器&lt;/strong&gt;&quot;, &quot;edit_themes&quot;, &quot;theme-editor.php&quot;);&#39; &#41;&#41;; add_action&#40; &#39;_admin_menu&#39;, create_function&#40;&#39;$plugin_menu&#39;, &#39;return add_submenu_page( &quot;plugins.php&quot;, &quot;&lt;strong&gt;插件编辑器&lt;/strong&gt;&quot;, &quot;&lt;strong&gt;插件编辑器&lt;/strong&gt;&quot;, &quot;edit_plugins&quot;, &quot;plugin-editor.php&quot;);&#39; &#41;&#41;; ?&gt; [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

