Index: wp-login.php
===================================================================
--- wp-login.php	(revision 51604)
+++ wp-login.php	(working copy)
@@ -985,8 +985,9 @@
 		 * @since 3.0.0
 		 *
 		 * @param string $registration_redirect The redirect destination URL.
+		 * @param int|WP_Error $error   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' ), '<p class="message register">' . __( 'Register For This Site' ) . '</p>', $errors );
 
