<?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>WordPress Web Hosting &#187; WordPress MU file editor</title>
	<atom:link href="http://www.shrewdies.net/blog/wordpress-mu-file-editor/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shrewdies.net</link>
	<description>Business Web Hosting For Shrewdies Not Dummies</description>
	<lastBuildDate>Thu, 26 Aug 2010 19:11:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WordPress MU File Editor Revealed</title>
		<link>http://www.shrewdies.net/201/wordpress-mu-file-editor-revealed/</link>
		<comments>http://www.shrewdies.net/201/wordpress-mu-file-editor-revealed/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 07:09:21 +0000</pubDate>
		<dc:creator>Keith from shrewdies</dc:creator>
				<category><![CDATA[Function]]></category>
		<category><![CDATA[WordPress MU file editor]]></category>
		<category><![CDATA[wordpress-mu]]></category>

		<guid isPermaLink="false">http://www.shrewdies.net/?p=201</guid>
		<description><![CDATA[Many &#8220;authorities&#8221; will tell you there is no WordPress MU file editor, and give you complicated workrounds to let you edit plugins and themes directly. This is no longer true. The latest version of multiuser WordPress has the standard file editor &#8211; it just needs to be enabled. First, a couple of warnings: Editing themes [...]]]></description>
			<content:encoded><![CDATA[<div class="kctIntro">Many &#8220;authorities&#8221; will tell you there is no WordPress MU file editor, and give you complicated workrounds to let you edit plugins and themes directly.</p>
<p>This is no longer true.</p>
<p>The latest version of multiuser WordPress has the standard file editor &#8211; it just needs to be enabled.</p></div>
<p>First, a couple of warnings:</p>
<ol>
<li>Editing themes and plugins directly can render your site unusable. It is vital that you have a backup of the file you are changing, AND file access to your webserver to revert to your backup if needed.</li>
<li>The change will affect all your users who are using the plugin or theme that you are changing</li>
</ol>
<p>So, there are very good reasons why you should not make ad-hoc changes to plugins and themes. However, if you feel that bypassing version control is occasionally worth the risk, here is how to unveil your hidden file editor.</p>
<p><span id="more-201"></span>
<ol>
<li>Create a file, e.g. file-editor-enabler.php, with the following code:<br />
<blockquote><p><code>&lt;?php<br />
add_action( 'admin_init', create_function('$pages', 'if(is_site_admin()) return remove_action("admin_init","disable_some_pages");'),1);<br />
add_action( '_admin_menu', create_function('$theme_menu', 'return add_theme_page( "Editor", "Editor", "edit_themes", "theme-editor.php");' ));<br />
add_action( '_admin_menu', create_function('$plugin_menu', 'return add_submenu_page( "plugins.php", "Editor", "Editor", "edit_plugins", "plugin-editor.php");' ));<br />
?&gt;</code></p></blockquote>
</li>
<li>Upload that file to the mu-plugins directory.</li>
</ol>
<p>That&#8217;s all you need to do. Any code put in the mu-plugins directory is automatically executed.</p>
<p>My thanks go to <a href="http://mu.wordpress.org/forums/profile/67928">dsader</a> at the WordPress MU forum for this excellent tip.</p>
<p><!--more--><div style="margin-left:-1em;"><table><tr><td><script type="text/javascript"><!--
google_ad_client = "pub-7512621270035949";
/* shrewdies 300x250, created 22/12/09 */
google_ad_slot = "4026195862";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td><td>
<script type="text/javascript"><!--
ch_client = "GoutPal";
ch_type = "mpu";
ch_width = 300;
ch_height = 250;
ch_color_bg = "ffffff";
ch_color_border = "ffffff";
ch_color_title = "00009e";
ch_color_site_link = "00009e";
ch_non_contextual = 4;
ch_vertical ="premium";
ch_sid = "ShrewdiesReward";
ch_alternate_ad_url = "http://www.shrewdies.net/ad.html";
var ch_queries = new Array( );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) {
ch_query = ch_queries[ch_selected];
}
//--></script>
<script  src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript">
</script></td></tr></table></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shrewdies.net/201/wordpress-mu-file-editor-revealed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
