In: , , ,
On: 2008 / 06 / 05
Shorter URL for this post: http://ozh.in/if

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 :)

Shorter URL

Want to share or tweet this post? Please use this short URL: http://ozh.in/if

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.

One Reply

  1. uwiuw says:

    yeah, that is really true. but i think WPMU still has lack of user role control. It made harder to make plugin. Thanks, i will try to remember this when i try to develop anything in wpmu

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
Gravatars: Curious about the little images next to each commenter's name ? Go to Gravatar and sign for a free account
Spam: Various spam plugins may be activated. I'll put pins in a Voodoo doll if you spam me.

Read more ?