diff --git a/readme.txt b/readme.txt index 0b0e52fb..9a6e3d96 100644 --- a/readme.txt +++ b/readme.txt @@ -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. diff --git a/src/php/WP/Comment.php b/src/php/WP/Comment.php index 0f291836..d530a728 100644 --- a/src/php/WP/Comment.php +++ b/src/php/WP/Comment.php @@ -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; }