Do you have custom snippets that are using echo() vs return()?
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
-
- 322 Posts
OK, it seems if I just put
return '';
at the end of every script, all is well.
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
I don't mean to mix issues or best practices. For the return() part there is a functional reason to use it vs the best practices for making distributable and more maintainable Extras. I absolutely support the pragmatic choice of choosing to incorporate output HTML within the context of the script if it's a) not going to be reused or shared and b) means the project will get done faster. So what you're supposed to do for clients and what you're supposed to do so your snippets always work are 2 different things.
:)
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
On this same line, I've noticed quite a lot of messages in the error log from plugins returning a 1. Ace, for one, returns a 1 for every time OnDocFormRender is invoked. Which can be quite a lot.