[wp-trac] Re: [WordPress Trac] #5560: Automatic Upgrade
WordPress Trac
wp-trac at lists.automattic.com
Sun Oct 5 06:13:28 GMT 2008
#5560: Automatic Upgrade
-------------------------+--------------------------------------------------
Reporter: keithdsouza | Owner: ryan
Type: enhancement | Status: closed
Priority: normal | Milestone: 2.7
Component: General | Version: 2.5
Severity: normal | Resolution: fixed
Keywords: blessed |
-------------------------+--------------------------------------------------
Comment (by ryan):
Steps performed during upgrade.
* Send version and locale to http://api.wordpress.org/core/version-
check/1.2/ to see if there is an update available. Get a link to the WP
package if so. The package for the requested locale is used if available,
otherwise the English package is used. Only locales that have setup an
international site on wp.org will have packages available. Reference
http://api.wordpress.org/core/version-check/1.2/
* Download the package from wordpress.org to the system temp directory
* Create working dir, usually wp-content/upgrade/core
* Unzip the package into our working dir
* Copy wp-admin/includes/update-core.php from the new version unzipped in
the working dir into the current WP install
* Include the new update-core.php
* Call update_core(), which is defined in update-core.php
update_core() takes over and does the following:
* Sanity check the new version of WP sitting in the working dir
* Create a .maintenance file in the WP root dir. wp-settings.php checks
this and prevents WP from fully loading if it exists. We don't want WP
loading while files are being upgraded.
* Overwrite old WP files with the new ones
* Remove files that are no longer part of the WP distro
* Send a request to ugrade.php to perform a DB upgrade. We do this as a
separate request instead of calling the upgrade function directly because
we need a fresh request that has all of the new stuff loaded.
* Delete the working dir
* Delete .maintenance
* Done
--
Ticket URL: <http://trac.wordpress.org/ticket/5560#comment:60>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list