Index: wp-admin/includes/template.php
===================================================================
--- wp-admin/includes/template.php	(revision 16564)
+++ wp-admin/includes/template.php	(working copy)
@@ -2120,6 +2120,13 @@
 	endswitch;
 	$text = ( NULL == $text ) ? __( 'Save Changes' ) : $text;
 
+	// Default the id attribute to $name unless an id was specifically provided in $other_attributes
+	$id = $name;
+	if ( is_array( $other_attributes ) && isset( $other_attributes['id'] ) ) {
+		$id = $other_attributes['id'];
+		unset( $other_attributes['id'] );
+	}
+
 	$attributes = '';
 	if ( is_array( $other_attributes ) ) {
 		foreach ( $other_attributes as $attribute => $value ) {
@@ -2129,11 +2136,6 @@
 		$attributes = $other_attributes;
 	}
 
-	// Default the id attribute to $name unless an id was specifically provided in $other_attributes
-	$id = $name;
-	if ( is_array( $other_attributes ) && isset( $other_attributes['id'] ) )
-		$id = $other_attributes['id'];
-
 	$button = '<input type="submit" name="' . esc_attr( $name ) . '" id="' . esc_attr( $id ) . '" class="' . esc_attr( $class );
 	$button	.= '" value="' . esc_attr( $text ) . '" ' . $attributes . ' />';
 
