Tag: legacy-code

Tutorials, WordPress

Patching abandoned WordPress themes for PHP 8: the widget constructor fix

Laptop displaying a code editor with class hierarchy panel and method documentation tooltip — typical view when reading inherited legacy code (photo: DKomov / Pexels)

You upgrade an OpenLiteSpeed box from PHP 7.4 to PHP 8.2, the four sites running mainstream themes come up clean, and the fifth — running a 2013-era premium theme that hasn’t been touched by its author since 2018 — throws …