To prevent plugins and themes from outputting notices entirely, ensure debug mode is off in your wp-config file:

define(‘WP_DEBUG’, false);
error_reporting(0);
@ini_set(‘display_errors’, 0);