Wp debug fix

Sorry, three in this one.  Two are minor.

The Media Credit issue was causing the media library to hang in debug mode as in injected the warnings in front of the ajax response.  

I think your intention is to keep the field off header images as you primarily use it for page content, but that might be off.  If that's right, than this should be good.