[wp-trac] Re: [WordPress Trac] #5560: Automatic Upgrade

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 7 20:32:16 GMT 2008


#5560: Automatic Upgrade
-------------------------+--------------------------------------------------
 Reporter:  keithdsouza  |        Owner:  ryan
     Type:  enhancement  |       Status:  new 
 Priority:  normal       |    Milestone:  2.9 
Component:  General      |      Version:  2.5 
 Severity:  normal       |   Resolution:      
 Keywords:  blessed      |  
-------------------------+--------------------------------------------------
Comment (by santosj):

 Replying to [comment:33 ryan]:
 > I'm thinking wp_update_core() should grab the updated version of WP,
 copy in wp-admin/includes/update-core.php from the updated version, and
 then include that and let it take over the upgrade from there.  That way
 it can do things only the new version knows about.
 >
 > update-core.php can have a master list of files that are no longer part
 of WP.  We could just diff the current installation with the contents of
 the zip and delete files not in the zip, but we should be conservative
 with what we delete and only delete files that were once included with WP.

 I like this. I was thinking about something like this myself, I just
 didn't know how to abstract it. It would be nice if this file had
 abstraction, so that you only have to call functions to do tasks in order
 instead of calling the PHP functions in one long script.

 I'll be willing to support something like this, both with testing and
 development. It is something I also had in mind, so I would like to see it
 done. Well anyway would be good.

 > Upgrade could add a special file to the content dir that wp-settings.php
 checks to see if an upgrade is in progress.  If so it throws up a 503
 message and stops loading WP.  We can serve a custom 503.php or the like
 from the content directory, if the user has supplied such.

 I like using a temp file for this. Something like {{{.upgrading}}} in the
 !WordPress base folder and check for it and bail if it is found. We can
 use a lot of the current plugin upgrade code. It is a lot easier to check
 for the existance of a file, than a constant in some cases.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5560#comment:35>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list