Index: wp-includes/version.php
===================================================================
--- wp-includes/version.php	(revision 5296)
+++ wp-includes/version.php	(working copy)
@@ -3,6 +3,6 @@
 // This holds the version number in a separate file so we can bump it without cluttering the SVN
 
 $wp_version = '2.3-alpha';
-$wp_db_version = 5183;
+$wp_db_version = 5200;
 
 ?>
Index: wp-admin/upgrade-functions.php
===================================================================
--- wp-admin/upgrade-functions.php	(revision 5296)
+++ wp-admin/upgrade-functions.php	(working copy)
@@ -184,6 +184,10 @@
 
 	if ( $wp_current_db_version < 4351 )
 		upgrade_old_slugs();
+	
+	if ( $wp_current_db_version < 5200 ) {
+		upgrade_230();
+	}
 
 	$wp_rewrite->flush_rules();
 
@@ -565,6 +569,14 @@
 	}
 }
 
+function upgrade_230() {
+	global $wp_current_db_version;
+	
+	if ( $wp_current_db_version < 5200 ) {
+		populate_roles_230();
+	}
+}
+
 function upgrade_old_slugs() {
 	// upgrade people who were using the Redirect Old Slugs plugin
 	global $wpdb;
Index: wp-admin/admin-functions.php
===================================================================
--- wp-admin/admin-functions.php	(revision 5296)
+++ wp-admin/admin-functions.php	(working copy)
@@ -1948,7 +1948,7 @@
 		return $upload_error_handler( $file, __( 'Specified file failed upload test.' ));
 
 	// A correct MIME type will pass this test. Override $mimes or use the upload_mimes filter.
-	if ( $test_type ) {
+	if ( $test_type && !current_user_can( 'unfiltered_upload' ) ) {
 		$wp_filetype = wp_check_filetype( $file['name'], $mimes );
 
 		extract( $wp_filetype );
Index: wp-admin/upgrade-schema.php
===================================================================
--- wp-admin/upgrade-schema.php	(revision 5296)
+++ wp-admin/upgrade-schema.php	(working copy)
@@ -262,6 +262,7 @@
 function populate_roles() {
 	populate_roles_160();
 	populate_roles_210();
+	populate_roles_230();
 }
 
 function populate_roles_160() {
@@ -395,4 +396,12 @@
 	}
 }
 
+function populate_roles_230() {
+	$role = get_role( 'administrator' );
+	
+	if ( !empty( $role ) ) {
+		$role->add_cap( 'unfiltered_upload' );
+	}
+}
+
 ?>
\ No newline at end of file
