WordPress.org

Make WordPress Core

Changeset 29631


Ignore:
Timestamp:
08/26/2014 08:00:07 PM (5 years ago)
Author:
nacin
Message:

Password resets: Use network_site_url() for form actions.

props mdawaffe.
fixes #29156.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r29381 r29631  
    526526?>
    527527
    528 <form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post">
     528<form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post">
    529529    <p>
    530530        <label for="user_login" ><?php _e('Username or E-mail:') ?><br />
     
    614614
    615615?>
    616 <form name="resetpassform" id="resetpassform" action="<?php echo esc_url( site_url( 'wp-login.php?action=resetpass', 'login_post' ) ); ?>" method="post" autocomplete="off">
     616<form name="resetpassform" id="resetpassform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=resetpass', 'login_post' ) ); ?>" method="post" autocomplete="off">
    617617    <input type="hidden" id="user_login" value="<?php echo esc_attr( $rp_login ); ?>" autocomplete="off" />
    618618
Note: See TracChangeset for help on using the changeset viewer.