Changeset 58674 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 07/04/2024 09:59:34 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r58653 r58674 2225 2225 $message = sprintf( __( 'Username: %s' ), $user->user_login ) . "\r\n\r\n"; 2226 2226 $message .= __( 'To set your password, visit the following address:' ) . "\r\n\r\n"; 2227 $message .= network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user->user_login ), 'login' ) . "\r\n\r\n"; 2227 2228 /* 2229 * Since some user login names end in a period, this could produce ambiguous URLs that 2230 * end in a period. To avoid the ambiguity, ensure that the login is not the last query 2231 * arg in the URL. If moving it to the end, a trailing period will need to be escaped. 2232 * 2233 * @see https://core.trac.wordpress.org/tickets/42957 2234 */ 2235 $message .= network_site_url( 'wp-login.php?login=' . rawurlencode( $user->user_login ) . "&key=$key&action=rp", 'login' ) . "\r\n\r\n"; 2228 2236 2229 2237 $message .= wp_login_url() . "\r\n";
Note: See TracChangeset
for help on using the changeset viewer.