Recently I was working on some old code. One of my model methods was originally written such that if one parameter was set to the Python None type, a particular set of actions would occur. For some reason, I checked for None like this:
if parameter is None:
do something …
If you need to debug what queries your WordPress site is making, try adding the
following PHP to your theme: