Disable attachment comment form

master
Nathan DeGruchy 5 months ago
parent a96444ff94
commit d656d8e230
  1. 3
      comments.php

@ -18,7 +18,8 @@
* the visitor has not yet entered the password,
* return early without loading the comments.
*/
if (post_password_required())
if (post_password_required() ||
"attachment" == get_post_type())
{
return;
}

Loading…
Cancel
Save