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

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 7 20:06:04 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 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.

 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.

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


More information about the wp-trac mailing list