Hi Asti/AI,
Thanks for your response.
1) Yes, the user role has the edit_comment capability assigned: I am an administrator.
2) The latest WP version (7.0.2) and wpDiscuz version (7.6.62) are installed. The issue still happens.
3) No custom code snippets are intercepting comment editing.
4) Yes, the same happens when Twenty Twenty-Five is enabled.
Regarding the AJAX request, an example of a payload is this one:
- action -> wpdEditComment
- commentId -> 2378050
- postId -> 249615
- wpdiscuz_nonce -> a23c1ad114
And the response is:
{
"success": true,
"data": {
"html": "<div class='wpdiscuz-edit-form-wrap'><form id='wpdiscuz-edit-form'><div class='wpdiscuz-item wpdiscuz-textarea-wrap'> <div id=\"wpd-editor-wraper-edit_2378050_2378029\" style=\"display: none;\">\r\n <div id=\"wpd-editor-char-counter-edit_2378050_2378029\"\r\n class=\"wpd-editor-char-counter\"><\/div>\r\n <label style=\"display: none;\" for=\"wc-textarea-edit_2378050_2378029\">Label<\/label>\r\n <textarea id=\"wc-textarea-edit_2378050_2378029\" name=\"wc_comment\"\r\n class=\"wc_comment wpd-field\"><\/textarea>\r\n <div id=\"wpd-editor-edit_2378050_2378029\"><\/div>\r\n <div id=\"wpd-editor-toolbar-edit_2378050_2378029\">\r\n <button title=\"Bold\"\r\n class=\"ql-bold\" ><\/button>\r\n <button title=\"Italic\"\r\n class=\"ql-italic\" ><\/button>\r\n <button title=\"Underline\"\r\n class=\"ql-underline\" ><\/button>\r\n <button title=\"Strike\"\r\n class=\"ql-strike\" ><\/button>\r\n <button title=\"Ordered List\"\r\n class=\"ql-list\" value='ordered' ><\/button>\r\n <button title=\"Unordered List\"\r\n class=\"ql-list\" value='bullet' ><\/button>\r\n <button title=\"Link\"\r\n class=\"ql-link\" ><\/button>\r\n <div class=\"wpd-editor-buttons-right\">\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <\/div><table class='form-table editcomment wpd-form-row'><tbody><\/tbody><\/table><input type='hidden' name='wpdiscuz_unique_id' value='2378050_2378029'><div class='wc_save_wrap'><input class='wc_cancel_edit wpd-second-button' type='button' value='Cancel'><input id='wpd-field-submit-edit_2378050_2378029' class='wc_save_edited_comment wpd-prim-button' type='submit' value='Save'><\/div><input type=\"hidden\" id=\"_wp_unfiltered_html_comment_disabled\" name=\"_wp_unfiltered_html_comment_disabled\" value=\"601d4ae713\" \/><script>\n(function(){if(window===window.parent){document.getElementById('_wp_unfiltered_html_comment_disabled').name='_wp_unfiltered_html_comment';}})();\n\/\/# sourceURL=wp_comment_form_unfiltered_html_nonce\n<\/script>\n<\/form><\/div>",
"content": "<p>Why use the $400 link?<\/p><br>"
}
}
And finally, regarding the WordPress error logs, there is no error there (yes, I activated the debug mode).
Looking forward to solving this.
Thanks,