diff --git src/wp-includes/pluggable.php src/wp-includes/pluggable.php
index 794565f..304f86d 100644
--- src/wp-includes/pluggable.php
+++ src/wp-includes/pluggable.php
@@ -909,7 +909,7 @@ if ( !function_exists('wp_sanitize_redirect') ) :
  * @return string redirect-sanitized URL
  **/
 function wp_sanitize_redirect($location) {
-	$location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%!]|i', '', $location);
+	$location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%!\[\]]|i', '', $location);
 	$location = wp_kses_no_null($location);
 
 	// remove %0d and %0a from location
diff --git tests/phpunit/tests/formatting/redirect.php tests/phpunit/tests/formatting/redirect.php
index 97c8ec2..54e06b4 100644
--- tests/phpunit/tests/formatting/redirect.php
+++ tests/phpunit/tests/formatting/redirect.php
@@ -13,5 +13,11 @@ class Tests_Formatting_Redirect extends WP_UnitTestCase {
 		//Nesting checks
 		$this->assertEquals('http://example.com/watchthecarriagereturngo', wp_sanitize_redirect('http://example.com/watchthecarriagereturn%0%0ddgo'));
 		$this->assertEquals('http://example.com/watchthecarriagereturngo', wp_sanitize_redirect('http://example.com/watchthecarriagereturn%0%0DDgo'));
+
+		//IPv6 literals
+		$this->assertEquals('http://[::1]/wp-admin/install.php', wp_sanitize_redirect('http://[::1]/wp-admin/install.php'));
+		$this->assertEquals('http://[::1]/wp-admin/install.php', wp_sanitize_redirect('http://[::1]/wp-admin/install.php'));
+		$this->assertEquals('http://[2606:2800:220:6d:26bf:1447:1097:aa7]/', wp_sanitize_redirect('http://[2606:2800:220:6d:26bf:1447:1097:aa7]/'));
+
 	}
 }
