Skip to content

Commit

Permalink
Fix processing wpDiscuz comment form with wpDiscuz custom ajax.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Feb 1, 2025
1 parent 1fa244c commit b063e77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,9 @@ Instructions for popular native integrations are below:

== Changelog ==

= 4.11.0 =
* Fixed processing wpDiscuz comment form with wpDiscuz custom ajax.

= 4.10.0 =
* Added support for wp_login_form() function and LoginOut block.
* Added support for hCaptcha in HTML Gravity Forms fields.
Expand Down
2 changes: 1 addition & 1 deletion src/php/WP/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function add_captcha( $submit_field, array $comment_args ): string {
public function verify( $comment_data ): array {
$comment_data = (array) $comment_data;

if ( is_admin() ) {
if ( is_admin() || wp_doing_ajax() ) {
return $comment_data;
}

Expand Down

0 comments on commit b063e77

Please sign in to comment.