WordPress MU theme-editor

Hi all, I recently installed WordPress MU 2.8.4a to one of the social networks I maintain, And wanted to do some changes in theme source code, so I started looking for theme editor button in admin area, under appearance. But the button wasn’t there. So I tried to use the direct link to the theme-editor.php in order to access the theme editor function, instead I received an error “page disabled by administrator.” I tried to search online and seems like there are not that many good suggestions. I looked at the code and if anyone would need to have The built-in Theme Editor, they you will need to edit one (1) file only and you won’t need to upload or change anything else.

The file is “mu.php” located under “/wp-admin/includes” folder.

to edit from WordPress MU 2.8.1:

Do the following changes

  • Search and locate

{code type=codetype}

unset( $submenu['themes.php'][10] ); // always remove the themes editor{/code}

Then change to{code type=codetype}
//unset( $submenu['themes.php'][10] ); // always remove the themes editor{/code}

  • Then locate

{code type=codetype}

if ( strpos( $_SERVER['PHP_SELF'], $page ) ) {{/code}

Change to

{code type=codetype}

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

{/code}

Refresh you admin page, and now you will find the editor button on Appearance admin menu.

Good luck, If you find this post useful, please share it with others, if you have a suggestion or opinion, please leave me a comment, I’d love to hear from you.

mySignature WordPress MU theme editor


pix WordPress MU theme editor About the author:  I am Phesto Enock, Tanzanian male living in Finland, professionally a software engineer, a blogger and online business researcher. I love technology and its wicked twists. I am a main author of NiftyEyeBlog So let us share our experiences. Read more from this author


One Response to WordPress MU theme-editor
  1. Noel Alex
    October 14, 2009 | 23:24

    You know much about J2EE..right?

    Do you have any knowledge in WSDL? I would like some suggestions on how I can learn more about it…

    Any suggestions?

    reader

      (Quote)

Leave a Reply

Wanting to leave an <em>phasis on your comment?

Trackback URL http://www.niftyeyeblog.com/wordpress-mu-theme-editor/trackback/