WordPress.org

Ready to get started?Download WordPress

Forums

Sideways8 Custom Login and Registration
Reset password link in email is wrong (3 posts)

  1. iltdevunit
    Member
    Posted 11 months ago #

    Hi,

    There is an issue with WordPress multisites where if you are in a child site, the lost password link will point to the parent.

    So say your site is /parent/child, the url would be:
    http://domain/parent/wp-login.php?action=lostpassword

    not:
    http://domain/parent/child/wp-login.php?action=lostpassword

    This also affects the reset password link in the email that is sent.

    There are a couple of fixes for this here:
    http://core.trac.wordpress.org/ticket/21352

    I've applied tried both and they fix the problem.
    However, when I activate Sideways8 Custom Login and Registration, the problem comes back.
    I've had a look at the files in the plugin /inc folder, but can't see anything.

    Can anyone help?

    http://wordpress.org/plugins/s8-custom-login-and-registration/

  2. iltdevunit
    Member
    Posted 11 months ago #

    When I say the problem comes back, I'm referring specifically to the reset link in the email. It shows as:
    http://domain/parent/child/child/wp-login.php?action=lostpassword

  3. iltdevunit
    Member
    Posted 11 months ago #

    Okay, I think I've sorted it.

    It seems the plugin developer has spotted the bug in WordPress core and applied their own fix. But in fixing the core, the plugin's fix messes things up a bit.

    I commented out line 49 of s8-login-registration.php:
    add_filter( 'retrieve_password_message', array( $this, 'filter_email_urls' ), 10, 2 );

    Seems okay now :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.