Web Design

WordPress 7.2 Upgrade Checklist: The /random/ Route, Cache Order and Leftover Files

A warm documentary photograph of an empty race car pit lane before a race, with fresh tires stacked and tools laid out in neat order on a clean concrete floor beside the pit wall, a visual for the WordPress 7.2 upgrade checklist, getting everything ready before release day

The WordPress 7.2 upgrade lands on December 8, 2026, and a few changes need attention on client sites before you click update. WordPress’s Hosting Team published a test report on November 12 that lists them. The biggest is a new public /random/ URL that returns a 404 after upgrade until rewrite rules are flushed. Others involve cache order, leftover files and multisite upgrade messages.

This post is for agencies and in-house web teams who manage several WordPress sites, and for anyone who runs their own hosting. It turns the Hosting Team’s findings into a checklist you can run during the release week. The findings come from testing 7.2 betas, so some may change by release. Facts are as of November 22, 2026.

The short version: after each WordPress 7.2 upgrade, run wp rewrite flush, then purge your page cache, in that order. Watch slow-query logs on big sites. Upgrade with WP-CLI where you can, and do not trust a "Success" message from checksum checks on its own. On multisite, check each subsite rather than trusting "All done!"

WordPress 7.2 release dates

The WordPress 7.2 development page lists the remaining schedule:

Date Milestone What to do
November 24, 2026 Release Candidate 3 Test on staging copies of your busiest sites
December 1, 2026 Release Candidate 4 Final staging pass; book release-week time
December 7, 2026 Dry run and 24-hour code freeze Confirm backups and rollback plans
December 8, 2026 WordPress 7.2 release Upgrade in waves, not all sites at once

WordPress’s page also says a new default theme ships alongside 7.2. If you have not looked at 7.2 yet, our posts on WordPress 7.2 Beta 1 and 7.2 RC1 cover what is in it.

One correction to those earlier posts. The Secrets API is no longer part of 7.2. We explained what to clean up in WordPress 7.2 Secrets API Removed.

The /random/ route after a WordPress 7.2 upgrade

WordPress 7.2 adds a /random/ URL that redirects visitors to a random published post. It is a small feature with two operational effects.

It 404s until rewrite rules are flushed. The Hosting Team says, "After an upgrade it’s a 404 until rewrite rules are flushed, which core does on the first wp-admin request, per site on multisite." On a site nobody logs into for a while, that 404 can sit there.

Your page cache can keep the 404. In the Hosting Team’s test, a cached 404 survived the upgrade until the cache was purged. Its guidance is direct: "Run wp rewrite flush on every site after each upgrade, then purge your page cache, in that order."

If you do not want the feature, the Hosting Team names a filter to turn it off: wp_enable_random_content_redirect. It also says to check that a caching plugin does not replace core’s no-cache headers on the redirect.

The query cost of /random/

Each request to /random/ picks a random post from the database. The Hosting Team read the Beta 5 code and describes an ORDER BY RAND() query over eligible published posts. It notes the cost grows with the number of posts.

The report flags two things that make this worse. Neither an object cache nor an edge cache absorbs repeat requests, because each one wants a different post. And adding ?random to search and archive URLs runs the same query.

The Hosting Team did not measure the effect. It read the code. For a small site, this will not matter. For a site with tens of thousands of posts, a bot hitting /random/ repeatedly could load the database. Its advice: check slow-query logs on large sites, and check whether your edge or firewall rate-limits these URLs.

Leftover files and checksum checks

This one affects how you verify a WordPress 7.2 upgrade.

The Hosting Team found that a Dashboard or automatic update from 7.1.4 left 10 files under wp-includes/ that 7.2 does not ship. It traced this to Trac ticket #66456. The cause is a list of old files that is not updated until RC1, so this may be fixed in the final release. A WP-CLI wp core update removed the files in its tests.

The catch is in the check. The Hosting Team says wp core verify-checksums lists leftover files as warnings but still prints Success and exits with code 0. A script that only looks at the exit code will report a clean site.

The team also notes that WP-CLI only removes old files if it can reach api.wordpress.org. If it cannot, it skips the cleanup with a warning and still reports success. Read the warnings, not only the result.

Other changes in the Hosting Team report

A few smaller items from the same report are worth a line in your checklist:

  • Script loaders return 410. wp-admin/load-scripts.php and load-styles.php return HTTP 410. If a firewall rule, monitor or old plugin depends on them, update it.
  • KSES uses the HTML API by default. The content filter that cleans post HTML now uses WordPress’s HTML API, per Trac #66208. Test sites that rely on unusual markup in posts.
  • Client-side media processing needs a header. The feature needs the Document-Isolation-Policy header. Check whether your server or CDN sends it.
  • Multisite upgrades can mislead. A network upgrade can report "All done!" after a subsite fails, per Trac #66477.

A WordPress 7.2 upgrade checklist for agencies

Run this on each site, or script it across your fleet:

  1. Back up first. Take a fresh backup you have tested restoring. Our WordPress backup guide covers what to include.

  2. Upgrade on staging. Use a copy of the live site, with its real plugins and theme.

  3. Upgrade with WP-CLI where you can. Run wp core update, then wp core update-db.

  4. Flush, then purge. Run wp rewrite flush, then clear the page cache and CDN cache, in that order.

  5. Visit /random/. Confirm it redirects instead of returning a 404. Turn it off with the filter if you do not want it.

  6. Verify checksums and read the warnings. Run wp core verify-checksums and look for leftover file warnings, not only "Success."

  7. On multisite, check each subsite. Load the dashboard and front end of every subsite.

  8. Watch the database for a week. On large sites, check slow-query logs for ORDER BY RAND() queries.

Plan around the release date

Do not upgrade every client site on release day. Start with a few low-risk sites, watch for a day, then move to the rest. Security releases follow major versions closely, as WordPress 7.1.5 showed in November, so keep your update process ready for a quick follow-up.

If you host sites yourself, also count how many need the Secrets API cleanup from the betas. The Hosting Team report covers that too.

Before release week, also check plugin and theme changelogs for notes on 7.2. Custom themes and paid plugins that update slowly are the usual source of trouble after a major release. If a plugin your client depends on has not mentioned 7.2 by RC4, test it on staging and ask its developer. Holding one site back for a week is better than a broken site after a rushed WordPress 7.2 upgrade.

Frequently Asked Questions

When is the WordPress 7.2 release?

December 8, 2026, according to WordPress’s 7.2 development page. RC3 is scheduled for November 24 and RC4 for December 1.

What is the /random/ route in WordPress 7.2?

It is a new URL that redirects visitors to a random published post. It returns a 404 after a WordPress 7.2 upgrade until rewrite rules are flushed.

How do I fix the /random/ 404 after a WordPress 7.2 upgrade?

Run wp rewrite flush on each site, then purge your page cache, in that order. Core also flushes rules on the first wp-admin request.

Can I turn off the /random/ route?

Yes. The Hosting Team names the wp_enable_random_content_redirect filter for turning it off.

Will /random/ slow down my site?

On small sites, unlikely. On sites with many posts, each request runs a random-order database query that caches do not absorb, so watch slow-query logs.

Why does verify-checksums say Success when files are left over?

The Hosting Team found it lists leftover files as warnings but still prints Success and exits with code 0. Read the warnings.

Is the Secrets API in WordPress 7.2?

No. It was reverted from 7.2. Sites that tested it on Beta 5 or earlier may have leftover data to clean up.

Should we upgrade every site on December 8?

No. Upgrade a few low-risk sites first, watch for a day, then roll out to the rest in waves.

Digital Matters

Web Design Desk