Please please please please please turn WP_DEBUG on
If you’re developing a product that will be distributed for others to use, turn WP_DEBUG on in your local development environment. If you don’t, you’ll end up causing loads of PHP Notices and other warnings to be printed to the screen for those of us who do use WP_DEBUG.
There’s nothing more annoying than activating a plugin and seeing a cascade of PHP notices in the admin panel that’s so long you can only reach half of the navigation menu on the left. Nothing. Except for, well, you know, real problems.
Just open your wp-config.php
file, find this line:
define('WP_DEBUG', false);
And set it to true:
define('WP_DEBUG', true);
When you don’t do this in your development environment, kittens die.