diff --git a/wp-includes/version.php b/wp-includes/version.php index b53b219a21..73bce36094 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-52090'; +$wp_version = '5.9-alpha-52091'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-login.php b/wp-login.php index ccfd45f1ec..7dd2c19809 100644 --- a/wp-login.php +++ b/wp-login.php @@ -1040,10 +1040,13 @@ switch ( $action ) { * Filters the registration redirect URL. * * @since 3.0.0 + * @since 5.9.0 Added the `$errors` parameter. * - * @param string $registration_redirect The redirect destination URL. + * @param string $registration_redirect The redirect destination URL. + * @param int|WP_Error $errors User id if registration was successful, + * WP_Error object otherwise. */ - $redirect_to = apply_filters( 'registration_redirect', $registration_redirect ); + $redirect_to = apply_filters( 'registration_redirect', $registration_redirect, $errors ); login_header( __( 'Registration Form' ), '

' . __( 'Register For This Site' ) . '

', $errors );