Updating presentation code meant risking the operating system.
A previous developer had placed lead imports, order management, status tracking, automated email and related workflows directly inside a custom WordPress theme.
Business logic and page presentation had grown together as difficult-to-maintain spaghetti code. A normal theme update could affect core operations, and every change required understanding unrelated rendering code first.
