Skip to content

Commit

Permalink
fix method name for adding module=type attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Nov 7, 2024
1 parent 462388d commit 2c29cf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integrations/prosopo-procaptcha/class-procaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ protected function is_human_made_request()
return true === $is_verified;
}

public function maybe_add_async_attribute(string $tag, string $handle, string $src): string
public function maybe_add_type_module_attribute(string $tag, string $handle, string $src): string
{
if (
'prosopo-procaptcha' !== $handle ||
Expand Down Expand Up @@ -372,7 +372,7 @@ public function set_hooks(): void
add_action('mc4wp_form_content', array($this, 'inject_captcha_element'));
add_filter('mc4wp_form_errors', array($this, 'validate_form'), 10, 2);

add_filter('script_loader_tag', array($this, 'maybe_add_async_attribute'), 10, 3);
add_filter('script_loader_tag', array($this, 'maybe_add_type_module_attribute'), 10, 3);

$hook = true === is_admin() ?
'admin_print_footer_scripts' :
Expand Down

0 comments on commit 2c29cf7

Please sign in to comment.