Do not require a file in comments_template()
|Reported by:||mattonomics||Owned by:|
comments_template() is a very useful and reliable way to set up comments for a page, but it has a major downfall: it forces a file to be included when, in reality, one does not need to be.
Numerous times it has been the case that I needed comments to be setup in the wp_query object, but did not want to output anything at that time. The hack I have used is simply to include an empty comments.php file. This method is less than desirable for obvious reasons.
So, I propose that we simply add a parameter I'm calling $require that will control whether or not a file is included at all.