[wp-hackers] Auto Update Plugins

Mike Schinkel mikeschinkel at newclarity.net
Tue Feb 17 06:02:28 GMT 2009

Just tossing out a thought: what about creating a manifest of files upon install and then deleting only those files on upgrade?  It's not foolproof and would need a workaround in case the manifest is missing, but it might be one way to resolve the problem. 

-Mike Schinkel

----- Original Message -----
From: "Chris Williams" <chris at clwill.com>
To: wp-hackers at lists.automattic.com
Sent: Tuesday, February 17, 2009 12:58:40 AM GMT -05:00 US/Canada Eastern
Subject: Re: [wp-hackers] Auto Update Plugins

While I generally concur, one problem that comes to mind is files that need
to go away during the the upgrade.  That is why the manual instructions for
upgrading WP core tell you to delete the admin and include directories (but
not the content directory).

> From: Duane Storey <duanestorey at gmail.com>
> Reply-To: <wp-hackers at lists.automattic.com>
> Date: Mon, 16 Feb 2009 20:33:02 -0800
> To: <wp-hackers at lists.automattic.com>
> Subject: [wp-hackers] Auto Update Plugins
> The current WordPress implementation of the auto plugin updater does the
> following:
> 1) Downloads a zip file of the new plugin
> 2) Unzips it into a new directory
> 3) Deletes the old directoy
> 4) Copies the new directory to the old directory
> 5) Deletes the new directory
> A side effect of this is that all user-generated content that's part of the
> plugin gets deleted (for example, you can add custom styles to CFORMS, or
> custom icons to WPtouch).  Anyone know the motivation behind doing it this
> way?  The auto upgrade for WordPress obviously works differently since your
> themes and plugins aren't deleted during an auto upgrade.   I'd be happy to
> submit a patch to simply unzip into the current plugin directory (which
> would maintain user generated content in that plugin folder), but I was just
> curious about the motivation for doing it the current way.
> Thanks,
> Duane
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

wp-hackers mailing list
wp-hackers at lists.automattic.com

More information about the wp-hackers mailing list