### Eclipse Workspace Patch 1.0
#P wordpress-trunk
Index: wp-admin/theme-editor.php
===================================================================
--- wp-admin/theme-editor.php	(revision 17521)
+++ wp-admin/theme-editor.php	(working copy)
@@ -93,10 +93,7 @@
 		$location = "theme-editor.php?file=$file&theme=$theme&scrollto=$scrollto";
 	}
 
-	$location = wp_kses_no_null($location);
-	$strip = array('%0d', '%0a', '%0D', '%0A');
-	$location = _deep_replace($strip, $location);
-	header("Location: $location");
+	wp_redirect( $location );
 	exit();
 
 break;
Index: wp-includes/ms-settings.php
===================================================================
--- wp-includes/ms-settings.php	(revision 17521)
+++ wp-includes/ms-settings.php	(working copy)
@@ -91,14 +91,14 @@
 		} else {
 			$destination = 'http://' . $current_site->domain . $current_site->path . 'wp-signup.php?new=' . str_replace( '.' . $current_site->domain, '', $domain );
 		}
-		header( 'Location: ' . $destination );
-		die();
+		wp_redirect( $destination );
+		exit;
 	}
 
 	if ( ! defined( 'WP_INSTALLING' ) ) {
 		if ( $current_site && ! $current_blog ) {
 			if ( $current_site->domain != $_SERVER[ 'HTTP_HOST' ] ) {
-				header( 'Location: http://' . $current_site->domain . $current_site->path );
+				wp_redirect( 'http://' . $current_site->domain . $current_site->path );
 				exit;
 			}
 			$current_blog = get_blog_details( array( 'domain' => $current_site->domain, 'path' => $current_site->path ), false );
