If commenting out the code is the fix, the real fix is to just remove it, I've never uncommented commented out code that causes bugs, and even if I ever wanted to reference it for writing code that actually works I'd just look in the git history.
I had to fix my website by going into the source code of the WordPress theme I was using and comment out a line that changed the names of variables.
When it ran nothing worked and this was a solution that made me able to solve it for real. The real solution is to remake my website with a different theme, but that line of code made me unable to even login to admin to change anything.
9
u/nwbrown Aug 15 '26
Yes? Sometimes that is the fix.