hCaptcha / hcaptcha-wordpress-plugin

hCaptcha.com support for Wordpress (Plugin)
GNU General Public License v2.0
80 stars 32 forks source link

WP is not defined at lostpassword action page with elementor-pro #339

Closed dmardev closed 6 months ago

dmardev commented 6 months ago

Since 4.X, I am unable to show the hcaptcha at the wp-login.php?action=lostpassword page, devtools displays the "wp is not defined".

Screenshot_20240515_133138

Looking at the plugins, it seems related with "elementor-pro" (Elementor keeps 2 plugins, one free and the premium one, this is the premium). If i disable the plugin, the captcha seems to work again.

I'm not sure if is a problem with the elementor-pro plugin or the Hcaptcha integration but i can fix it adding as queue script dependency "wp-i18n" at HCaptchaHandler.php, inside the ElementorPro folder.

Screenshot_20240515_135412

Thanks!

kagg-design commented 6 months ago

Thank you for the report. I have fixed the issue; it will be released in v4.2.0 at the beginning of June.