Make WordPress Core

Ticket #34712: 34712.patch

File 34712.patch, 1.4 KB (added by sebastian.pisula, 11 years ago)
  • wp-login.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    319319                return $key;
    320320        }
    321321
     322        $reset_password_url = network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login');
     323
     324        /**
     325         * Filter the reset password url
     326         *
     327         * @since 4.4.0
     328         *
     329         * @param string  $reset_password_url      Reset password url
     330         * @param string  $key Password reset key
     331         */
     332
     333        $reset_password_url = apply_filters( 'reset_password_url', $reset_password_url, $key );
     334
    322335        $message = __('Someone has requested a password reset for the following account:') . "\r\n\r\n";
    323336        $message .= network_home_url( '/' ) . "\r\n\r\n";
    324337        $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
    325338        $message .= __('If this was a mistake, just ignore this email and nothing will happen.') . "\r\n\r\n";
    326339        $message .= __('To reset your password, visit the following address:') . "\r\n\r\n";
    327         $message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">\r\n";
     340        $message .= '<' . $reset_password_url . ">\r\n";
    328341
    329342        if ( is_multisite() )
    330343                $blogname = $GLOBALS['current_site']->site_name;