[wp-hackers] Updates for plugins in multi-site
Mika A Epstein
ipstenu at ipstenu.org
Tue Apr 9 16:08:44 UTC 2013
You only asked how to update a plugin on a Multisite Install when it's
not on the main site, and that answer remains "Visit the network plugins
page" :) Though in my experience, even plugins not running on that main
site get alerts if you're logged in as the Super Admin.
For programatic ways, I just use Pento's plugin:
http://wordpress.org/extend/plugins/automatic-updater/ and you could
easily fork that for your needs. WP-CLI is also a good tool for this
one, and you could script a shell script to check if it's the latest
version and update if not.
MU Plugins never check for updates, this is 100% correct, and it's why I
don't recommend putting real plugins in there and only my 'functions'.
> Jeff Rose <mailto:jeff at jeffrose.ca>
> April 9, 2013 8:16 AM
> Thanks for the reply Mika, but it doesn't really address the issue. I have
> a plugin that is active on 1 sub-site only and needs an update. Since it
> isn't active on the primary site, the update notification doesn't
> appear in
> my plugins page. In this specific case, I can just do an FTP update. No
> I'm actually looking for a programmatic solution. I saw something about
> creating a meta-plugin that goes into the MU folder or something to handle
> this case where the core WordPress install doesn't run the update check
> because it isn't actually running the plugin. To be clear, I wrote the
> plugin in question above.
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
Mika A Epstein (aka Ipstenu)
http://ipstenu.org | http://halfelf.org
More information about the wp-hackers