Widgets as an ‘mu-plugin’ on Wordpress MU

The widgets code has been released for public consumption as a Wordpress plugin and appears to work out of the box for Wordpress MU. However, this would still require a user to ‘activate’ the plugin before use as opposed to on wordpress.com where the plugin is enabled site-wide. This is relatively simple to achieve and involves the following steps:

  1. Copy the widgets directory and everything in it to /wp-inst/wp-content/mu-plugins/.
  2. Download widgets.txt, rename it to widgets.php, and copy it to /wp-inst/wp-content/mu-plugins/ (not in the widgets directory).

10 Responses to “Widgets as an ‘mu-plugin’ on Wordpress MU”

  1. AndreaR says:

    That did the trick, thank you. :)

  2. Nick says:

    This doesn’t work for me. The link doesn’t show up in the admin Presentation area of the Admin Panel. I tried it in mu-plugins and also put it in regular plugins and activated it. I do have plugins activated.

  3. jason says:

    Nick: It could be because you are not using a widgets enabled theme?

  4. Nick says:

    I added this code to the theme:

    Just like it says to on the Automattic website. Is there something else I have to do?

  5. Nick says:

    Sorry, that code is:

    if ( function_exists(’register_sidebar’) )
    register_sidebar();

  6. Katie says:

    Thanks for the lips and that last bit of code, it seemed to help. This plugin is great, good job on creating it!

    Katie

  7. soylopeor says:

    By the way… there’s no panel for activate/deactive mu site wide plugins? because I only see the “per site” plugins panel.

  8. Isn’t Kubrick widgets-enabled?

  9. Tom Fisher says:

    Jason,

    I will be giving the widgets.txt a try, and will let you know how it goes.

    I noticed below the security code? How did you add it to the comments form?

    Thanks,
    Tom

  10. Morfo says:

    I follow all instructions but still not working

Leave a Reply