Skip to content

Commit

Permalink
Block Emails: fix issue with Ajax call
Browse files Browse the repository at this point in the history
  • Loading branch information
champsupertramp committed Jul 24, 2023
1 parent 3d226e9 commit e6e4897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion um-block-emails/src/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function settings( $fields ) {
*/
public function merge_disposable_emails( $emails ) {

if ( is_admin() ) {
if ( is_admin() && ! wp_doing_ajax() ) {
return $emails;
}

Expand Down

0 comments on commit e6e4897

Please sign in to comment.