10up / Post-Customizer

A WordPress plugin to enhance the post editor preview
MIT License
51 stars 5 forks source link

Debug Bar Console conflict #7

Open jeremyfelt opened 10 years ago

jeremyfelt commented 10 years ago

If the Debug Bar Console plugin is enabled in current WordPress trunk, a Uncaught TypeError: Cannot read property 'body' of undefined appears when previewing a post with Post Customizer, killing the remaining Javascript and killing desired functionality.

This is likely not a Post Customizer issue, but it may be worth seeing if a workaround is available. Debug Bar Console does not throw the same error in the theme customizer, so it seems related to the repurposing of the interface.

tlovett1 commented 10 years ago

Definitely seems like a bug with Debug Bar Console to me. All that JS should not be firing when the admin bar is not rendering in the DOM. What do you think?