Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Ensure comments are not displayed on archive pages #2287
In some themes, the
This was causing all of the comments across the site to be loaded and displayed on all Sensei archive pages on this themes. Any theme that used a condition (such as
Unrelated to this PR (as I tested before and after), but possibly related to theme compatibility is that, with the Jannah theme, on Sensei pages where comments should be visible (lessons, single message), I see the comments, then the form to submit a new comment, followed by the same comments again. Anything to be done there?
Good catch! I took a look, and this was the exact same issue in code, manifested on the CPT page. It just wasn't as nasty because it wasn't loading and displaying all the comments across the entire site!
I've refactored this fix to share it between the two page types. Please have another look when you get a chance