Many Wordpress Mu administrators want to be able to easily customize their themes and plugins directly from the Wordpress Mu dashboard, just as it can be easily done on normal Wordpress dashboards,  but they are frustrated by not being able to access the theme editor and plugin editor.

Simply put, on the WPMU dashboard,  the  “Theme Editor” under Appearance section and “Plugin Editor” under Plugins section are nowhere to be seen.

In order to enable the theme editor and the plugin editor on your WPMU panel, you simply need to edit one file: mu.php situated in the wp-admin/includes folder.

Here is how I enabled the editors on the dashboard of my Wordpress Mu 2.8.6 installation:

- Go to “wp-admin/includes” folder of your Wordpress MU installation and open the mu.php file with your text editor.

- Comment the two lines in mu.php which are actually there to remove the plugin editor and the theme editor from the dashboard. To do that:
Search for the line “unset( $submenu['plugins.php'][15] );”
in mu.php and comment that line.
Search for the line “unset( $submenu['themes.php'][10] );” in mu.php and comment that line.

Here is what you get after commenting the two lines.
/* unset( $submenu['plugins.php'][15] ); */ // always remove the plugin
/* unset( $submenu['themes.php'][10] ); */  // always remove the themes

- Search for the  “function disable_some_pages”, and within the code of that function, locate the  line:

“if ( strpos( $_SERVER['PHP_SELF'], $page ) ) {”

and change that line into:

“if ( strpos( $_SERVER['PHP_SELF'], $page )&& !is_site_admin() ) {”

- Upload your mu.php file back to the wp-admin/includes folder.

Check now in your Wordpress MU dashboard: the theme editor (under ‘Appearance’ section and plugin editor (under ‘Plugins’ section should work properly in your wordpress MU installation.


Comments

Name (required)

Email (required)

Website

Speak your mind