I have been getting the occasional mysterious spam comment, even though I always disable comments throughout my whole site. Took me a while to track down, but I have just discovered that a visitor can comment on a media item. Huh??? I never knew this was even possible.
Apparently this is enabled by default, and so I now have a site with many hundreds of images that all have comments enabled. And there seems to be no easy way to do a bulk change of this. Do I need to run an sql command on the database?
And who thought this was a good idea in the first place?
Thank you Tim, Handy snippet, I’ll borrow that as well.
I (almost) always make sure comments are turned off before adding any content.to a site so problem does not arise.
If client wants comments just allow on a per post basis