Most of the time any changes that need to be done on upgrade are database related. Core files can be freely swapped pretty much.
WP keeps track of this by comparing db_version
option (stored in database) against the current value (from core files) on admin load. If there is mismatch it runs the upgrade routine to perform all the necessary changes, until the version is up to current.
In your case the easiest way would probably be:
- Unpack latest stable WP core at new location
- Copy old database to new location (or simply reuse old one) and configure new core to see it
- Copy content folder to new location (configure new core to see it if not placing inside the core folder)
- New core would pick it up as existing WP site with outdated database and perform the necessary updgrades
Related Posts:
- How can I migrate a super old version (2.0) of my blog to 3.1?
- Upgrading Node.js to latest version
- upgade python version using pip
- Not able to access admin panel after updating WordPress database fails
- Update WordPress with SFTP instead of FTP
- WP upgrade can’t create directory even though perms are 777 [closed]
- How do WordPress veterans deal with the issues of upgrading WordPress?
- Release Model for WordPress?
- 4.3.1 to 4.4 – WYSIWYG Editor Issues
- From 3.5 to 5.6.2 – Recommendation on how to get there with the least amount of pain?
- Permissions issue when trying to update WordPress
- Best Way to Upgrade from WP 2.8 (!)?
- Site needs massive upgrade – how to proceed?
- How to configure site for automatic upgrades
- How to prepare images for a layout width change?
- Upgrade WordPress Database from 2.6 to 3.2
- Why did my manual upgrade fail?
- Getting rid of files not used by latest upgrade
- WP already installed is asking to install
- Is the built-in updater the “best” way to upgrade WP installations?
- 3.1.3 auto-upgrade
- Empty space instead of admin bar
- Which database table does “Featured images” save under?
- What files to keep after upgrading WordPress?
- Upgrading wordpress 2.7 to 4.1 – posts are not listing after importing old db to new
- Updating servers at once in web cluster
- Client is using Softaculous to upgrade WordPress versions. How do I upgrade from the WordPress dashboard?
- WordPress 3.8 keeps asking me to upgrade to 3.8
- wp_list_categories
- Upgraded from 2.8.x to 3.3.1 and lost content
- Rebuild vs Upgrade – need pointers, advice
- Interrupted Upgrade to 4.5.1
- Can I degrade back to 3.7.1 from 3.8 by just coping old wp files?
- Why is it bad to use the GUID?
- redirected to “welcome to 3.8.5” after automatic upgrade to 4.1.1 now other admin links give 500 error
- Running WP_Upgrader via Cron
- Warnings On Updating WordPress
- Problems updating wordpress
- Upgrading from 3.2.1 to current
- Upgrading Across Multiple Versions
- Upgrade to 3.4 error: Call to undefined function get_option()
- Is WordPress 4.0 a Major update?
- Why does WordPress 4.1 have an auto-update entry in wp_options?
- WordPress automatic update error. Download failed : SSL certificate problem: unable to get local issuer certificate, “Installation Failed”
- Upgrading existing WordPress 4.1 to 4.6. What are some obstacles I might encounter?
- Upgrading from Old Version to Latest Version
- Installed WordPress with Softaculous. Should I upgradeManually or with Softaculous?
- Upgrade to 3.3.2 return a blank admin page
- WordPress 2.7 upgrade protocol
- Requirements for hosting a single WordPress Blog (upgrades / backups)
- When will be the next major update for wordpress?
- How is FTP used for upgrade?
- Maximum execution time exceeded while upgrading network on multisite local install [closed]
- WP not displaying the latest version upgrade button
- Upgrading to 4.1 fixed parse error
- _.omit is not function
- Publish issue after upgrading to 3.3
- Upgrade to 3.1 – Fatal error: Call to undefined function wp_cache_get()
- The new WordPress 3.1 “Admin Menu” isn’t appearing on my site or in the Dashboard
- WordPress cannot auto update and cannot find .maintenance file
- WordPress GUI and wp-cli are saying we have the latest version, but we don’t
- How to upgrade wordpress version?
- Upgrading a wordpress site to its newest version
- WP website won’t accept any new content – need dedicated hosting?
- Site showing version 4.1.16 as latest version
- Best method to upgrade WordPress and Plugins
- WordPress not updated correctly
- Upgrade local version of WordPress – links point to live site
- upgrade v. 2.8.5 to latest version of wordpress
- Upgraded to 3.8.1 on wp-admin but unable to upgrade in godaddy cpanel
- Upgrading from 3.4.2 [duplicate]
- plugin not updated after update wordpress 3.5.2
- Production Website Frozen at /wp-admin/upgrade.php
- Upgrading WP Version + Keeping Customized Core Code?
- Automatic Theme Upgrade hooks?
- Upgrading WordPress (File permission group owner)
- Stuck on Database Update Required after downgrading to 4.9.9 from backup
- Upgraded to 3.6.1. and cannot open my website anymore [closed]
- Do I have to buy a WordPress plan if I have Bluehost? [closed]
- upgrade wordpress 2.1.2 to wordpress latest version (3.6)
- Is it safe update WordPress 3.4.2. to 3.5? [closed]
- Upgrading from WordPress 3.8.2 to latest – only files and SQL dump available
- Do you have any effective strategies for launching a v2 of a WP site?
- Transfer Subdomain site to Multisite setup
- 500 Internal Server Error after attempting to switch from subdirectory to addon domain
- Error establishing a database connection After Copy localhost wordpress site (with site url directly to hosting server’s url before copy)
- Uncaught TypeError: Cannot read property ‘firstChild’ of null after upgrading to WordPress 5.5
- Best method to upgrade multisite plugin’s numerous database table
- Move from Subdomain to Root
- Migrating problem – featured images
- How do I migrate blog post images from one domain to a new one?
- Better way to migrate to server?
- how to migrate wpmu from one host to the other?
- Disable a plugin from ever upgrading?
- Migrate posts and photos from a blog to another
- Filter / add_action to upgrade.php page
- Import 2000 posts from one website to another
- Admin Custom Login loses settings on Code and Data migration
- Sidebar not visible after changing to new domain
- Why my wp site always redirecting to the old website path..?