• If you use the ‘Prevent change mail’ it also disables the ability for users to edit their profile, with WordPress throwing an error: ‘ERROR: Please enter an email address’.

    It may be important for a user to be able to edit their profile information AND not their email.

    My hack was to simple edit the wp-admin/user-edit.php file (line 442) to change the email address to a hidden input instead of a text/email input. This still passes the email, but doesn’t (easily) allow a user to edit their email. I don’t even know if editing that file is recommended, but it worked for me for a quick fix.

    It would be much better for the one-login plug-in to accommodate the disabling of email, but keeping the editing of the profile, all with it’s ‘Prevent change mail’ setting, rather than breaking the editing of a profile entirely.

  • The topic ‘Prevent change mail – bug’ is closed to new replies.