[wp-hackers] Auto Update Plugins

Mike Schinkel mikeschinkel at newclarity.net
Tue Feb 17 05:00:05 GMT 2009


I agree with Duane that #3 also creates problems. I previously mentioned that it caused problems when the entire project used subversion although it doesn't delete the directories, it just causes the upgrade to fail.  A better approach is surely needed.


-Mike Schinkel
http://mikeschinkel.com/

----- Original Message -----
From: "Duane Storey" <duanestorey at gmail.com>
To: wp-hackers at lists.automattic.com
Sent: Monday, February 16, 2009 11:33:02 PM GMT -05:00 US/Canada Eastern
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


More information about the wp-hackers mailing list