[wp-trac] [WordPress Trac] #22704: Automatic Core Updates

WordPress Trac noreply at wordpress.org
Wed Sep 4 11:53:26 UTC 2013


#22704: Automatic Core Updates
-----------------------------+-----------------------
 Reporter:  pento            |       Owner:  pento
     Type:  task (blessed)   |      Status:  assigned
 Priority:  normal           |   Milestone:  3.7
Component:  Upgrade/Install  |     Version:  3.5
 Severity:  normal           |  Resolution:
 Keywords:  dev-feedback     |
-----------------------------+-----------------------

Comment (by dd32):

 > Attachment attachment:22704.diff​ added

 Ok, that's a POC that i've been working with. An eagle-eyed person will
 note that it is basically written from scratch rather than using the Auto
 Updater plugin (And the author of said plugin agree's with the approach),
 coming at it from a completely different angle since we have different
 use-cases in mind.

 It's an mu-plugin simply for the ease of testing (Believe me, there's
 nothing more fun than the code you're working on overwriting itself with
 the unpatched version!), the `class-wp-upgrader.php` changes were me
 removing the first hacks from the class, but i'm not quite happy with the
 way it's implemented.. but it seems to be on the right track.

 The clear_update_cache changes relate to plugin auto-upgrades (which will
 NOT be enabled by default for 3.6) - basically only one plugin could be
 updated per pageload, as it would clear the cached updates for the other
 plugins once it finished.. There's probably a better way of fixing it than
 avoiding clearing the transients though.

 At this point, fast iterations are needed to get it into core, so my aim
 is to commit as much of this over the next few days while cleaning up and
 working on other stability, performance, and sanity checks.

 If someone else would like to read through it, comment on the direction,
 and/or give some thoughts to how I've gone about it, it'd be appreciated.

 Topics such as making backups and rollbacks and all that fun stuff are
 acknowledged, if someone wants to head over to #10666 and dive in it'd be
 great, but there are some significant issues which prevent most of the
 ideal methods of doing that IMHO at present, so my aim is to make updates
 as bulletproof as possible, rather than supplying everyone with a Tshirt
 and first-aid kit - at least for now.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/22704#comment:32>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list