wp debug – Prevent wp_debug from polluting ajax within plugin – WordPress Development Stack Exchange If you have php notices turned on, bad things happen.