[wp-testers] plugin updating...
dan at instinct.co.nz
Wed Jun 4 04:22:31 GMT 2008
Thanks for the email.
If you could come up with a few hooks then that would be awesome. I'm
asking because we create plugins and I think it would be useful - the
problem we are having right now is that people can add additional php
files to our plugin to extend the core features.
So when the update the plugin from WordPress extend they loose their
work. If we were making a new plugin from scratch then this wouldn't be
a problem and we would do it differently but because we already have
lots of users I'm not sure we can do it.
As an interim what we're going to try and do is just disable auto
updates from happening but allow people to manually download updates and
do it themselves. For powerful plugins I think this would be extremely cool.
> It is not currently possible to hook in to make changes to what
> is/isnt deleted.
> The plugin directory the files are stored in are often not the same as
> the plugin's slug, In order to keep simpler code, all plugins are
> stored into a folder based on their slug and the old plugin removed.
> If you have made changes to the core plugin, Consider submitting them
> as patches back to the author, or forking the plugn(at least for
> yourself = modify the plugin name and url)
> If the plugin stores files into its plugin folder, Consider asking the
> plugin maintainer to store the data outside of the plugins folder, Or
> in the database if its small enough. This has the benefit of also
> keeping the plugins folder manageable.
> It may be possible in 2.6 to filter what is/isnt
> deleted/removed/modified/etc, There have been 1 or 2 requests for it
> so far since 2.5 release :). I'm working on some changes which'll
> affect the upgraders code, so i may well try and write a few hooks or
> something in, But as it is, there is no list of files which you cna
> filter, it just says "Delete that folder and any files in it, i dont
> care what the files are, just get rid of them"
> On Wed, 04 Jun 2008 10:52:24 +1000, Dan Milward <dan at instinct.co.nz>
>> Hi Guys,
>> How do we add custom code to the plugin updating system to preserve
>> files that people may have added to the plugin directory.
>> Because by default it looks like it deletes the plugin directory and
>> replaces the all the files with the updated version - in the process
>> deleting any changes.
>> wp-testers mailing list
>> wp-testers at lists.automattic.com
More information about the wp-testers