Skip to content
deploy-and.run

deploy-and.run

Who merges so late, past midnight's chime, still pushing bugs to master's line?

  • WordPress & Performance
  • Server & Infrastructure
  • DevOps & Automation
  • Tooling & AI
  • Notes

wp-cli

WP-CLI in scripts and deploy pipelines: bulk fixes, migrations, and the flag and query details that decide what a command really touches.

The Fallback Image That Overwrote Every Featured Image

November 17, 2026 by halimat
Sketch of a WP-CLI command whose hyphenated meta-key and meta-compare flags are ignored by WP_Query, so a fallback image was assigned to every post and 21 of 28 own images were overwritten.

A deploy step meant to give image-less posts a fallback had been assigning it to every post on every deploy for four months. Nobody could see it, because every post had the fallback anyway — until the day each one got its own image and the next deploy quietly took 21 of them back.

Categories DevOps & Automation Tags automation, debugging, devops, wordpress, wp-cli

Recent Posts

  • The Settings That Didn’t Survive a Deploy
  • The Fallback Image That Overwrote Every Featured Image
  • Two Rewrite Changes That 404’d Every Post on This Blog
  • The Control Panel Ate My Maintenance Page
  • Boot the Release Against a Copy of Production Before You Switch

About deploy-and.run

© 2026 deploy-and.run • Built with GeneratePress