Limited Support
Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.
Hi,
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".
"Sorry, comments are not allowed for this item" when trying to publish the comment.
I've tracked this error down to the file wpdiscuz/utils/class.WpdiscuzHelper.php
Line 1730:
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; }
Here I have disabled the return of the error and rather returned true, and users can now comment again on "draft posts".
But this is of course only a temporary fix - any way to permanently make it possible to comment on draft posts again?