<?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>
									Commenting on posts with status &quot;draft&quot; - General Discussions				            </title>
            <link>https://wpdiscuz.com/community/general-forum/commenting-on-posts-with-status-draft/</link>
            <description>wpDiscuz WordPress Comment Plugin Community. Support and Resources.</description>
            <language>en-US</language>
            <lastBuildDate>Sat, 18 Jul 2026 18:37:59 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Commenting on posts with status &quot;draft&quot;</title>
                        <link>https://wpdiscuz.com/community/general-forum/commenting-on-posts-with-status-draft/#post-22270</link>
                        <pubDate>Tue, 31 Oct 2023 13:49:52 +0000</pubDate>
                        <description><![CDATA[Hi,
We have a internal system where some posts have status &quot;drafts&quot;. Previously, until a couple of days ago, it was possible for our users to comment on these posts. Comment status is set t...]]></description>
                        <content:encoded><![CDATA[<p>Hi,</p>
<p>We have a internal system where some posts have status "drafts". Previously, until a couple of days ago, it was possible for our users to comment on these posts. Comment status is set to "open" in WordPress for every post, but suddently (after recent plugin update) they get a error message when trying to leave a comment on a "draft post".</p>
<p><strong>"Sorry, comments are not allowed for this item" when trying to publish the comment.</strong></p>
<p>I've tracked this error down to the file wpdiscuz/utils/class.WpdiscuzHelper.php<br />Line 1730:</p>
<pre contenteditable="false">if (current_user_can("read_post", $comment_post_id)) {
 // return new WP_Error("comment_on_draft", __("Sorry, comments are not allowed for this item.", "wpdiscuz"), 403);
 return true;
}</pre>
<p>Here I have disabled the return of the error and rather returned true, and users can now comment again on "draft posts".</p>
<p>But this is of course only a temporary fix - any way to permanently make it possible to comment on draft posts again?</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/general-forum/">General Discussions</category>                        <dc:creator>webtron</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/general-forum/commenting-on-posts-with-status-draft/#post-22270</guid>
                    </item>
							        </channel>
        </rss>
		