ideas icon indicating copy to clipboard operation
ideas copied to clipboard

One-file MU plugin updater

Open szepeviktor opened this issue 8 years ago • 3 comments

Based on a meta header, e.g. MU Plugin URI:

szepeviktor avatar Jan 19 '17 01:01 szepeviktor

Could you clarify how this might work with a bit more detail?

danielbachhuber avatar Jan 19 '17 21:01 danielbachhuber

The above mentioned meta would point to the download location. On wp plugin mu-list wp-cli would download that file and parse its headers. If $new > $current then wp-cli would replace the file on wp plugin mu-update my-mu-plugin

szepeviktor avatar Jan 19 '17 22:01 szepeviktor

The downloaded files could be cached for X minutes.

szepeviktor avatar Jan 19 '17 22:01 szepeviktor