I’ve had a couple of ‘life lessons’ this week related to keeping my WordPress theme directory clean. I have not fully embraced Source Code management on all my projects and have gotten into the habit of copying files and directories before I edit them. This is cool since it means I can revert changes easily, however leaving all sorts of stuff laying around is bad, tut tut.
The other very good reason for not leaving junk files ( I’m sure there are actually many good reasons) is that it screws up the built in editor in the admin panel. I was in a remote office today with only a web browser ( locked down chrome in-fact) to use.I discovered today that in the admin panel you can actually load any template file you like into its basic text editor, and keep on hacking ! Again it greatly helps if you have not got a huge amount of crud files in there, since they all show up. I actually fell for the same thing twice in one week!