From abef322786cfc656f0c87214f33ece2b7e6cd3a9 Mon Sep 17 00:00:00 2001 From: Andy Fragen Date: Thu, 24 Oct 2024 13:14:02 -0700 Subject: [PATCH] update default parameter for PHP8 compatibility --- src/wp-includes/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php index 700a758990664..d078d3d0f8a85 100644 --- a/src/wp-includes/user.php +++ b/src/wp-includes/user.php @@ -3106,7 +3106,7 @@ function check_password_reset_key( $key, $login ) { * Defaults to `$_POST['user_login']` if not set. * @return true|WP_Error True when finished, WP_Error object on error. */ -function retrieve_password( $user_login = null ) { +function retrieve_password( $user_login = '' ) { $errors = new WP_Error(); $user_data = false;