HOW TO: Remove WordPress Duotone code

The powers that be thought it in everyone’s interest to inject a ton of code into your WP install.
This code allows one to add duotone filters to uploaded images.
Yep! I have no idea why either, but, there you go.

So, to remove this carbuncle code you need to take a few steps.

If you haven’t already, upload a new file to your theme – theme.json

In this file add the following:

{
"version": 1,
"settings": {
"color": {
"duotone": null
}
}
}

Your templates should now be back to normal.