As seen here: http://wycks.wordpress.com/2013/12/05/how-to-remove-error-notices-using-wordpresss-wp_debug/ In your `wp-content` folder create a new folder called `mu-plugins` and in that folder create a php file with the error level you want, for example:
[php]//Turns off notices
error_reporting(E_ALL ^ E_NOTICE);[/php]
If you are using PHP 5.5 +, you will get deprecated noticed for WordPress’s mysql_* functions, you can turn them off using:
[php]error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);[/php]
Or for something really robust, which happens to be the case a lot.
[php]error_reporting(E_ALL & ~( E_DEPRECATED | E_USER_DEPRECATED | E_USER_NOTICE | E_STRICT ));[/php]
Revisions
- December 7, 2014 @ 09:54:28 [Current Revision] by PeterLugg
- December 7, 2014 @ 09:54:28 by PeterLugg
Revision Differences
There are no differences between the December 7, 2014 @ 09:54:28 revision and the current revision. (Maybe only post meta information was changed.)
No comments yet.