In: , , ,
On: 2008 / 06 / 05 Viewed: 35684 times
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 :)

Related posts

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. 1
    uwiuw Canada »
    wrote, on 16/Feb/10 at 10:17 am # :

    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

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