Support » Fixing WordPress » wp-login child

  • Hello. i modified an issue into the wp-login.php and the reset password.

    However, with the next wp update, i think that my fix issue will be removed. I wondering so how to add into my theme this fix issue and being certain that during the next update it wont be removed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Andrew Nevins


    WCLDN 2018 Contributor | Volunteer support

    Most likely, are you okay with using a plugin or do you want to customise it completely yourself?

    Hi. i do not need a plugin as it was just a fix issue with the reset password mail and cach. i solve it bye modifying a little code into the wp-login.php.

    however, am fearing that with the next wp update, the code will be over write. that why i need to creat a wp-login.php child file to be sure that it won’t overwrite it.

    Andrew Nevins


    WCLDN 2018 Contributor | Volunteer support

    It will definitely erase on the next update, but can you give us more detail on what you changed?

    Well in fact when i was requesting for a password reset or after an account creation to create the password, i was revived the mail with the link for reset/creat it. however, when i clicked on the link, i had an error as : “Your password reset link appears to be invalid. Please request a new link below.”
    here the link : <;
    However, when I was clicking on the link, the link was changing to :

    Has as read on web, it is a cache matter, and some webmail do not support it. as am on a mutualised server, i don’t have the end on the php/appach setting.

    So i searched for another way to solve it and i saw some one talking about this line into the wp-login.php : line 332 – $message .= ‘<‘ . network_site_url(“wp-login.php?action=rp&key=$key&login=” . rawurlencode($user_login), ‘login’) . “>\r\n”;

    I knew that if i copy the link, and past it, it works, but if i click on the link directly, it do not works. so i removed the <> to see what’s happen. and, it worked !

    $message .= ” . network_site_url(“wp-login.php?action=rp&key=$key&login=” . rawurlencode($user_login), ‘login’) . “\r\n”;

    My matter now, is that as I modified a main file, and know that after each update it will be rewrite, am a bit lazy to rewrite this code after each update. That why i was wondering to how to creat a wp-login.php child file.

    also happen into the /wp-includes/pluggable.php in line 1823 to user who creat new account and need to click on the link to creat the password after mail recive.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘wp-login child’ is closed to new replies.