In wp-includes/comment-template.php in WordPress before 5.4.2, comments from a post or page could sometimes be seen in the latest comments even if the post or page was not public. Reference: https://wordpress.org/news/2020/06/wordpress-5-4-2-security-and-maintenance-release/ Upstream patch: https://core.trac.wordpress.org/changeset/47984
Created wordpress tracking bugs for this issue: Affects: epel-all [bug 1878848]