HandyPlugins / magic-login

Magic Login for WordPress. Easy, secure, and passwordless authentication for WordPress. https://handyplugins.co/magic-login-pro/
https://wordpress.org/plugins/magic-login/
GNU General Public License v2.0
11 stars 5 forks source link

Array offset error when changing user of password #36

Open Schwankenson opened 6 days ago

Schwankenson commented 6 days ago

Dear handyplugins Team,

in my custom coded theme I get an error when changing password of a user in WP admin, since I activated Magic Links Plugin:

grafik

I think a simple check if $atts_message is set could avoid this.

mustafauysal commented 19 hours ago

Hi @Schwankenson

I wanted to check if there’s any custom code in your theme that alters the behavior of the wp_mail function. Specifically, the replace_magic_link_in_wp_mail is hooked into wp_mail, and the message attribute should be available there. You can find more details in the WordPress core code here: https://github.com/WordPress/WordPress/blob/6.6.2/wp-includes/pluggable.php#L192.

It may be worth considering adding additional controls to ensure everything functions as expected, tho.