diff --git src/wp-includes/class-wp-application-passwords.php src/wp-includes/class-wp-application-passwords.php
index 6e84e0a2b2..6840dc93f3 100644
|
|
|
class WP_Application_Passwords { |
| 347 | 347 | } |
| 348 | 348 | |
| 349 | 349 | $password['last_used'] = time(); |
| 350 | | $password['last_ip'] = $_SERVER['REMOTE_ADDR']; |
| | 350 | $password['last_ip'] = isset( $_SERVER['REMOTE_ADDR'] ) ? $_SERVER['REMOTE_ADDR'] : null; |
| 351 | 351 | |
| 352 | 352 | $saved = static::set_user_application_passwords( $user_id, $passwords ); |
| 353 | 353 | |
diff --git src/wp-includes/template-loader.php src/wp-includes/template-loader.php
index 0fd08545cc..91a68462a7 100644
|
|
|
if ( wp_using_themes() ) { |
| 23 | 23 | * |
| 24 | 24 | * @param bool $exit Whether to exit without generating any content for 'HEAD' requests. Default true. |
| 25 | 25 | */ |
| 26 | | if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) ) { |
| | 26 | if ( ( isset( $_SERVER['REQUEST_METHOD'] ) && 'HEAD' === $_SERVER['REQUEST_METHOD'] ) && apply_filters( 'exit_on_http_head', true ) ) { |
| 27 | 27 | exit; |
| 28 | 28 | } |
| 29 | 29 | |
diff --git src/wp-includes/user.php src/wp-includes/user.php
index 6d53726327..f7f36b1d08 100644
|
|
|
function retrieve_password( $user_login = '' ) { |
| 3303 | 3303 | $message .= network_site_url( 'wp-login.php?login=' . rawurlencode( $user_login ) . "&key=$key&action=rp", 'login' ) . '&wp_lang=' . $locale . "\r\n\r\n"; |
| 3304 | 3304 | |
| 3305 | 3305 | if ( ! is_user_logged_in() ) { |
| 3306 | | $requester_ip = $_SERVER['REMOTE_ADDR']; |
| | 3306 | $requester_ip = isset( $_SERVER['REMOTE_ADDR'] ) ? wp_unslash( $_SERVER['REMOTE_ADDR'] ) : ''; |
| 3307 | 3307 | if ( $requester_ip ) { |
| 3308 | 3308 | $message .= sprintf( |
| 3309 | 3309 | /* translators: %s: IP address of password reset requester. */ |