Very, very random.
This is just a quick post about something that I just learned about. If you are like me, you spend a bit of time cleaning up the back-end before presenting to a client. I know what you are thinking, and no, I’m not a prostitute. I mean the Admin areas!
Personally, I hate all of the extra themes just lurking there for your client to activate. Like me, I’m sure a lot of you just delete them. Have you ever gone through an update just after? Did you realize that the lovely people at WordPress reinstall all of those themes? Did you know that WordPress will actually default back to one of those themes under certain circumstances?!?
I found two really neat and powerful lines of code you can add to your
define( 'CORE_UPGRADE_SKIP_NEW_BUNDLED', true );
define( 'WP_DEFAULT_THEME', 'my-default-theme' );
So what do these lines of code do for me and you? The first tells the WP upgrade engine not to reinstall all the pesky themes that you have taken time to uninstall. It also will block the reinstallation of akismet. The second line of code will tell WordPress the correct fallback theme. Remember to change ‘my-default-theme’ to the name of your child theme (you are using a child theme, right?!?).