Skip to content

Commit

Permalink
update default parameter for PHP8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
afragen committed Oct 24, 2024
1 parent de38e8e commit abef322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-includes/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit abef322

Please sign in to comment.