Skip to content

Commit

Permalink
fix renames. unit tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
daveagp committed Jun 16, 2024
1 parent a496d87 commit 2ae5bab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/wp-includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -8872,7 +8872,7 @@ function wp_fuzzy_number_match( $expected, $actual, $precision = 1 ) {
* @param string $url The URL to encode.
* @return string The new encoded URL.
*/
function wp_url_encode_ending_period( $url ) {
function _encode_query_arg_ending_period( $url ) {
if ( ! is_string( $url ) ) {
return '';
}
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/pluggable.php
Original file line number Diff line number Diff line change
Expand Up @@ -2224,7 +2224,7 @@ function wp_new_user_notification( $user_id, $deprecated = null, $notify = '' )
/* translators: %s: User login. */
$message = sprintf( __( 'Username: %s' ), $user->user_login ) . "\r\n\r\n";
$message .= __( 'To set your password, visit the following address:' ) . "\r\n\r\n";
$message .= network_site_url( "wp-login.php?action=rp&key=$key&login=" . wp_url_encode_ending_period( $user->user_login ), 'login' ) . "\r\n\r\n";
$message .= network_site_url( "wp-login.php?action=rp&key=$key&login=" . _encode_query_arg_ending_period( $user->user_login ), 'login' ) . "\r\n\r\n";

$message .= wp_login_url() . "\r\n";

Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -3219,7 +3219,7 @@ function retrieve_password( $user_login = null ) {
$message .= sprintf( __( 'Username: %s' ), $user_login ) . "\r\n\r\n";
$message .= __( 'If this was a mistake, ignore this email and nothing will happen.' ) . "\r\n\r\n";
$message .= __( 'To reset your password, visit the following address:' ) . "\r\n\r\n";
$message .= network_site_url( "wp-login.php?action=rp&key=$key&login=" . wp_url_encode_ending_period( $user_login ), 'login' ) . '&wp_lang=' . $locale . "\r\n\r\n";
$message .= network_site_url( "wp-login.php?action=rp&key=$key&login=" . _encode_query_arg_ending_period( $user_login ), 'login' ) . '&wp_lang=' . $locale . "\r\n\r\n";

if ( ! is_user_logged_in() ) {
$requester_ip = $_SERVER['REMOTE_ADDR'];
Expand Down

0 comments on commit 2ae5bab

Please sign in to comment.