A small kindness for the three readers who still use paper.
What we found first
Releases go badly when they are exciting. Our best ones are dull: a checklist, a backup someone has actually restored, a rollback plan and a time of day when the people who can fix things are awake. If your release needs courage, something earlier in the process needs more attention, and a calmer Tuesday afternoon will show you what it is.
Keyboard testing costs nothing and finds real bugs. Put the mouse in a drawer and try to use the page with the tab key alone. You will find focus styles that vanish, menus you cannot leave and buttons that are really links. None of these need a specialist to spot, and most of them take minutes to put right.

Why it matters
We kept the change small on purpose. It is tempting to tidy everything nearby while the file is open, but every extra line makes the review slower and the rollback riskier. A short diff that does one thing gets merged this week. A long diff that does six things gets argued about until someone quietly closes it.
Scheduled tasks deserve more suspicion than they get. WordPress runs them on the back of ordinary page views, so a slow job can land on a visitor who did nothing to deserve it. List what is registered, work out what each job does and how long it takes, and move the heavy ones to a real system cron.
The part that surprised us
Names matter more than cleverness. When a function says exactly what it returns, the template that calls it reads like a sentence and the bug has nowhere to hide. We renamed more than we rewrote on this project, and the reviewers noticed. Six months from now that will be worth more than any micro-optimisation we could have shipped.
Tomas Lindqvist Sep 04, 2024
We do something similar with WP-CLI in our deploy step and it has been solid.
Noah Bennett Aug 19, 2026
I disagree slightly on the rollback plan, but the rest matches what we do.
Noah Bennett Nov 22, 2024
The point about small diffs is the one I keep having to repeat at work.
Aisha Khan Apr 30, 2025
Nice. One small correction: that hook fires earlier than the post suggests.
Ravi Menon Feb 10, 2025
Sending this to a colleague who is about to start a migration next week.
Ravi Menon Jul 18, 2025
This saved me an afternoon. The bit about testing the cold path first is going on the team wiki.
Ravi Menon Dec 24, 2025
Does this still hold on a site with a persistent object cache, or does the picture change?
Tomas Lindqvist Oct 06, 2025
We hit the same thing last spring and blamed the host for a month. Wish I had read this then.
Noah Bennett Mar 13, 2026
Good write-up. I would add a note about checking the logs before you clear anything.
Grace Tanaka Jun 01, 2026
Tried this on a client site this morning. The query count dropped straight away.