The MU forums have moved to WordPress.org

Updating plugins in mu-plugins directory? (16 posts)

  1. JamesFrancis
    Member
    Posted 18 years ago #

    Hey Y'all,

    Any advice with regard to knowing when plugins in the mu-plugins directory need updating/upgrading?

    For plugins in the plugins directory, you are notified every time you look at the plugins tab in the admin... but there doesn't seem to be any sort of notifications for the plugins in the mu-plugins directory.

    Thanks, James

  2. andrea_r
    Moderator
    Posted 18 years ago #

    "For plugins in the plugins directory, you are notified every time you look at the plugins tab in the admin"

    Because those are plugins hosted over at the official repository. :)

    So far, there's nothing for mu-specific plugins because they normally do not show up in a list in the backed.

  3. JamesFrancis
    Member
    Posted 18 years ago #

    Thanks andrea_r... man you're quick. Your comments on other people's posts have been quite helpful to me as I try to figure all the WordPress MU stuff out. Thanks for offering so much helpful advice in these forums! :-)

    Here's the thing: I am putting plugins that are in the "official repository" in the mu-plugins directory... at times hacking them a bit in order to get them to function... so that they are activated automatically and site wide.

    I was thinking about just creating a separate WP MU install and putting all the plugins in the mu-plugins directory in my main install in the plugins directory on that separate install. This way, I could just check the plugins admin tab on the separate install every now and again to see if they need updating...

    I was just hoping for an easier way.

    What do you think? Any ideas?

    Thanks Again.

  4. jamescollins
    Member
    Posted 18 years ago #

    An alternative option is to put the plugins in the usualy wp-content/plugins/ directory (instead of in wp-content/mu-plugins) and then use Plugin Commander to make the plugins auto-activate when new blogs are created.

  5. andrea_r
    Moderator
    Posted 18 years ago #

    I agree with james. :) I don't like to put too many things in the mu-plugins folder unless absolutely needed, or ones that were meant to be placed there.

  6. cafespain
    Member
    Posted 18 years ago #

    Hmmm. I wonder if this would be a good candidate for an WPMU plugin?
    I've always been a bit peeved by the length of time it takes to have a plugin accepted in the "official" repository, so I had been looking at a way of allowing plugin authors to hold their version numbers and update links on their own sites (or in a google code repository).

  7. andrea_r
    Moderator
    Posted 18 years ago #

    OOooo, it would be a good idea... Pass it on to James. :D

  8. jamescollins
    Member
    Posted 18 years ago #

    cafespain/andrea_r: The cforms plugin isn't hosted in the WP plugin repository, but still notifies you of new versions. You might want to check out how it performs the update checking.

  9. andrea_r
    Moderator
    Posted 18 years ago #

    But it does that via the backend menu of that plugin, right?

    There's many mu-specific plugin that don't have a backend menu, soooo.... that wouldn't work.

  10. jamescollins
    Member
    Posted 18 years ago #

    The update notification is displayed via the normal WP Dashboard -> Plugins menu. I'm not sure if this is also displayed in WPMU's Dashboard -> Plugins menu.

    I was going to suggest writing an mu-plugin that used WP's built in wp_update_plugins() function (in wp-admin/includes/update.php) or checking the update_plugins wp_option to see which plugins have updates, but these functions are commented out in WPMU.

  11. cafespain
    Member
    Posted 18 years ago #

    I'm going to work on this at the weekend during my self-imposed "weekend of coding n writing".

    Hopefully I'll have a version with basic functionality complete and then will look at self-hosted plugins update notifications a little later.

  12. andrea_r
    Moderator
    Posted 18 years ago #

    See, I never look at the dashboard. :D

    Also, for mu plugins, I think I'd want the update notice to be shown to admins only.

  13. cafespain
    Member
    Posted 18 years ago #

    @andrea_r: sometimes your comments just fly straight over my head, which is some feat considering I'm over 6 foot 2 :)

    I was thinking of either putting it under the Site Admins menu, or doing a site admin check and adding it under the Plugins menu.

  14. andrea_r
    Moderator
    Posted 18 years ago #

    Sounds good, I think that's what I meant. :D

    (I'm 5'1". Half my kids are taller than I am.)

  15. JamesFrancis
    Member
    Posted 18 years ago #

    Jamescollins, thanks for the WP Commander tip! I installed it and, while it does not do what I originally posted about, it will be quite helpful to me in a number of other ways and will make it easier to check when the plugins in the plugin directory need updating (by checking the plugins tab box and having a quick peak). So, thank you.

    However, this is obviously still not ideal (and will become less ideal the more users I have) and still does not provide a way to check the mu specific plugins in the mu-plugins directory.

    Cafespain, how'd your "weekend of coding n writing" go? Any luck? I'm not a "coder", but I have done my fair share of WPMU hacking at this point and would certainly be happy to test your handiwork... let me know.

    Thanks to all three of you for your responses! Sorry it took me so long to check back in.

  16. MrBrian
    Member
    Posted 18 years ago #

    I think you missed the point. You migrate the mu-plugins over to the plugins folder and use plugin commander to auto activate them for every blog. same functionality as the plugin being in mu-plugins, but done differently and solves your problem 100%.

About this Topic

  • Started 18 years ago by JamesFrancis
  • Latest reply from MrBrian