Debug Diary: Slow Article Migration

This is a (somewhat unusual?) summary of how I debugged and resolved a bottleneck in a migration. Enjoy! 🙂 Background Some client project required migrating existing content from various internal sources into WordPress. This included both posts and terms, as well as a bit of metadata. Most of the existing data was provided as a […]

Proper File Checking in PHP

TL;DR: if you want to read a file, use is_readable, not file_exists. Over the last year or so, I think I reviewed about a dozen PRs—both Human Made and external—with something like this PHP code snippet: While this code works like 99% of the time, it’s not really doing what people thought it did. What […]