<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Live-update notification (bubble) never notifies two guest commenters when both leave the comment author email field blank - Bug Reports				            </title>
            <link>https://wpdiscuz.com/community/bug-reports/live-update-notification-bubble-never-notifies-two-guest-commenters-when-both-leave-the-comment-author-email-field-blank/</link>
            <description>wpDiscuz WordPress Comment Plugin Community. Support and Resources.</description>
            <language>en-US</language>
            <lastBuildDate>Mon, 09 Nov 2026 11:04:25 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Live-update notification (bubble) never notifies two guest commenters when both leave the comment author email field blank</title>
                        <link>https://wpdiscuz.com/community/bug-reports/live-update-notification-bubble-never-notifies-two-guest-commenters-when-both-leave-the-comment-author-email-field-blank/#post-30768</link>
                        <pubDate>Thu, 08 Oct 2026 08:53:59 +0000</pubDate>
                        <description><![CDATA[ok]]></description>
                        <content:encoded><![CDATA[<p>ok</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/bug-reports/">Bug Reports</category>                        <dc:creator>Mau</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/bug-reports/live-update-notification-bubble-never-notifies-two-guest-commenters-when-both-leave-the-comment-author-email-field-blank/#post-30768</guid>
                    </item>
				                    <item>
                        <title>RE: Live-update notification (bubble) never notifies two guest commenters when both leave the comment author email field blank</title>
                        <link>https://wpdiscuz.com/community/bug-reports/live-update-notification-bubble-never-notifies-two-guest-commenters-when-both-leave-the-comment-author-email-field-blank/#post-30731</link>
                        <pubDate>Sat, 12 Sep 2026 09:53:45 +0000</pubDate>
                        <description><![CDATA[Hi,
Thank you for letting us know. 
This will be fixed in the next update.]]></description>
                        <content:encoded><![CDATA[<p>Hi,</p>
<p>Thank you for letting us know. </p>
<p>This will be fixed in the next update.</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/bug-reports/">Bug Reports</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/bug-reports/live-update-notification-bubble-never-notifies-two-guest-commenters-when-both-leave-the-comment-author-email-field-blank/#post-30731</guid>
                    </item>
				                    <item>
                        <title>Live-update notification (bubble) never notifies two guest commenters when both leave the comment author email field blank</title>
                        <link>https://wpdiscuz.com/community/bug-reports/live-update-notification-bubble-never-notifies-two-guest-commenters-when-both-leave-the-comment-author-email-field-blank/#post-30730</link>
                        <pubDate>Sat, 12 Sep 2026 04:49:10 +0000</pubDate>
                        <description><![CDATA[wpDiscuz version: 7.6.69Environment: WordPress (ClassicPress-based), PHP, LiteSpeed server, no caching plugin activeSummary:The bubble/live-update REST endpoint (wp-json/wpdiscuz/v1/update) ...]]></description>
                        <content:encoded><![CDATA[<p>wpDiscuz version: 7.6.69<br />Environment: WordPress (ClassicPress-based), PHP, LiteSpeed server, no caching plugin active<br /><br />Summary:<br />The bubble/live-update REST endpoint (wp-json/wpdiscuz/v1/update) never returns<br />newly posted comments in its "ids" field when two different guest visitors post<br />comments without filling in an email address. The overall "all_comments_count"<br />does update correctly, but the "ids" array (which drives the notification<br />bubble/toast) stays empty forever for these visitors, even though the new<br />comments are approved and clearly exist with a higher comment_ID than the<br />client's lastId.<br /><br />Root cause (found by reading includes/class.WpdiscuzDBManager.php):<br />getNewCommentIds() builds its query with:<br /><br />... AND `comment_ID` &gt; %d AND `comment_author_email` != %s ...<br /><br />where %s is the requesting visitor's own email (from $_COOKIE<br />"comment_author_email_" . COOKIEHASH, or the logged-in user's email).<br />This is meant to exclude a visitor's own comments from their own<br />notification feed. However, when a guest commenter does not enter an<br />email address, comment_author_email is stored as an empty string (‘’).<br />If a SECOND, completely different guest visitor also leaves the email<br />field blank, their request also sends email = ''. The exclusion filter<br />then matches "comment_author_email != ''" as FALSE for the other<br />visitor's new comment (because it also equals ''), so that comment is<br />incorrectly treated as "my own" and excluded from `ids` — even though<br />it was posted by a different person in a different browser.<br /><br />Steps to reproduce:<br />1. Open the same post in two different browsers/profiles as two<br />different anonymous guests (not logged in).<br />2. In both, submit a comment WITHOUT filling in an email address<br />(only a display name).<br />3. Wait for the bubble's live-update poll (wp-json/wpdiscuz/v1/update)<br />to fire in either browser.<br />4. Observe: `all_comments_count` increases correctly, but `ids` and<br />the notification bubble/toast never show the other guest's new<br />comment — because both share the same blank email identity.<br />5. For comparison, if one of the two commenters is logged in (so their<br />email is a real, distinct value), notifications work correctly in<br />both directions.<br /><br />Expected behavior:<br />Two different guest visitors who both leave the email field blank<br />should still be notified of each other's new comments — an empty<br />email should not be treated as a shared "identity" for the<br />self-exclusion filter. Suggested fix: only apply the<br />`comment_author_email != %s` exclusion when the requester's email is<br />non-empty, or use a more reliable per-visitor identifier (e.g. a<br />random per-session cookie/nonce) instead of email for this<br />self-exclusion check.<br /><br />Impact:<br />On a public site where many visitors comment as anonymous guests<br />without an email address, this silently breaks the live comment<br />notification feature for a large share of real visitors, not just in<br />a synthetic multi-browser test.<br /><br />Happy to share captured network requests/responses (from Chrome<br />DevTools/Firefox DevTools) and the exact wp_comments rows (comment_ID,<br />comment_author, comment_author_email) that reproduce this if useful.</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/bug-reports/">Bug Reports</category>                        <dc:creator>wpdiscuzuser2258</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/bug-reports/live-update-notification-bubble-never-notifies-two-guest-commenters-when-both-leave-the-comment-author-email-field-blank/#post-30730</guid>
                    </item>
							        </channel>
        </rss>
		