In: , , ,
On: 2008 / 06 / 05 Viewed: 13684 times

WordPress MU is a hacked version of WordPress that can manage several blogs from a single install. Basically, most of the things (plugins and themes) made for WP work for WPMU (don’t take this as a golden rule though)

Today on wp-hackers‘ mailing list, Donncha posted an interesting message about two fundamental differences between WP and WPMU, regarding plugins and user roles.

The main difference between WP and MU for plugins is where the plugin lives. There is a plugins folder still, but there’s also an mu-plugins folder too. Any file in mu-plugins will be included/loaded on every request.

Also, almost every user on an MU site is untrusted, even admins. The only people who should have access to edit css or html in your plugin are site admins. You can check if the current user is one by using the is_site_admin() function, any time after init.

I wasn’t aware of this, being relatively WPMU ignorant in general, so I thought I might emphasize this Donnchaism for anyone else in my case :)

Related posts

Metastuff

This entry "About Plugins and Roles in WordPress MU" was posted on 05/06/2008 at 9:00 pm and is tagged with , , ,
Watch this discussion : Comments RSS 2.0. You can trackback this post from your own site

No Comment yet

No comments yet. You could get "First Post!" which would bring you fame, luxury cars and chicks.

Leave a Reply

Comment Guidelines or Die

  • HTML: You can use these tags: <a href=""> <em> <i> <b> <strong> <blockquote>
  • Posting code: Post raw code (no <> &lt; etc) within appropriate tags : [php][/php], [css][/css], [html][/html], [js][/js], [sql][/sql], [xml][/xml], or generic [code][code]
  • Gravatars: Curious about the little images next to each commenter's name ? Go to Gravatar.
  • Spam: Various spam plugins on patrol. I'll put pins in a Voodoo doll if you spam me.
  • I will mark as Spam test comments, all comments with SEO names (ie "My Cool Online Shop" instead of "Joe") or containing forum-like signatures.

Read more ?

Close
E-mail It