diff --git wp-admin/includes/template.php wp-admin/includes/template.php
index d8d82a0..6187b8d 100644
--- wp-admin/includes/template.php
+++ wp-admin/includes/template.php
@@ -870,7 +870,37 @@ function add_meta_box( $id, $title, $callback, $screen = null, $context = 'advan
 }
 
 /**
- * Meta-Box template function
+ * Meta-Box template function for multiple styles
+ *
+ * @param string|object $screen Screen identifier
+ * @param string $context box context
+ * @param mixed $object gets passed to the box callback function as first parameter
+ * @return int number of meta_boxes
+ */
+function do_meta_boxes( $screen, $context, $object ) {
+
+	$style = apply_filters( 'meta_boxes_style', 'boxes', $screen, $context, $object );
+
+	switch ( $style ) {
+
+		case 'boxes':
+			$i = render_meta_boxes( $screen, $context, $object );
+			break;
+
+		case 'accordion':
+			$i = do_accordion_sections( $screen, $context, $object );
+			break;
+
+		default:
+			$i = apply_filters( 'render_meta_boxes_' . $style, 0, $screen, $context, $object );
+
+	}
+
+	return $i;
+}
+
+/**
+ * Meta-Box template function for the standard style
  *
  * @since 2.5.0
  *
@@ -879,7 +909,7 @@ function add_meta_box( $id, $title, $callback, $screen = null, $context = 'advan
  * @param mixed $object gets passed to the box callback function as first parameter
  * @return int number of meta_boxes
  */
-function do_meta_boxes( $screen, $context, $object ) {
+function render_meta_boxes( $screen, $context, $object ) {
 	global $wp_meta_boxes;
 	static $already_sorted = false;
 
@@ -892,14 +922,14 @@ function do_meta_boxes( $screen, $context, $object ) {
 
 	$hidden = get_hidden_meta_boxes( $screen );
 
-	printf('<div id="%s-sortables" class="meta-box-sortables">', htmlspecialchars($context));
+	printf( '<div id="%s-sortables" class="meta-box-sortables">', htmlspecialchars( $context ) );
 
 	$i = 0;
 	do {
 		// Grab the ones the user has manually sorted. Pull them out of their previous context/priority and into the one the user chose
-		if ( !$already_sorted && $sorted = get_user_option( "meta-box-order_$page" ) ) {
+		if ( ! $already_sorted && $sorted = get_user_option( "meta-box-order_$page" ) ) {
 			foreach ( $sorted as $box_context => $ids ) {
-				foreach ( explode(',', $ids ) as $id ) {
+				foreach ( explode( ',', $ids ) as $id ) {
 					if ( $id && 'dashboard_browser_nag' !== $id )
 						add_meta_box( $id, null, null, $screen, $box_context, 'sorted' );
 				}
@@ -907,33 +937,32 @@ function do_meta_boxes( $screen, $context, $object ) {
 		}
 		$already_sorted = true;
 
-		if ( !isset($wp_meta_boxes) || !isset($wp_meta_boxes[$page]) || !isset($wp_meta_boxes[$page][$context]) )
+		if ( ! isset( $wp_meta_boxes ) || ! isset( $wp_meta_boxes[$page] ) || ! isset( $wp_meta_boxes[$page][$context] ) )
 			break;
 
-		foreach ( array('high', 'sorted', 'core', 'default', 'low') as $priority ) {
-			if ( isset($wp_meta_boxes[$page][$context][$priority]) ) {
+		foreach ( array( 'high', 'sorted', 'core', 'default', 'low' ) as $priority ) {
+			if ( isset( $wp_meta_boxes[$page][$context][$priority] ) ) {
 				foreach ( (array) $wp_meta_boxes[$page][$context][$priority] as $box ) {
 					if ( false == $box || ! $box['title'] )
 						continue;
-					$i++;
-					$hidden_class = in_array($box['id'], $hidden) ? ' hide-if-js' : '';
-					echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . $hidden_class . '" ' . '>' . "\n";
+					$i ++;
+					$hidden_class = in_array( $box['id'], $hidden ) ? ' hide-if-js' : '';
+					echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes( $box['id'], $page ) . $hidden_class . '" ' . '>' . "\n";
 					if ( 'dashboard_browser_nag' != $box['id'] )
-						echo '<div class="handlediv" title="' . esc_attr__('Click to toggle') . '"><br /></div>';
+						echo '<div class="handlediv" title="' . esc_attr__( 'Click to toggle' ) . '"><br /></div>';
 					echo "<h3 class='hndle'><span>{$box['title']}</span></h3>\n";
 					echo '<div class="inside">' . "\n";
-					call_user_func($box['callback'], $object, $box);
+					call_user_func( $box['callback'], $object, $box );
 					echo "</div>\n";
 					echo "</div>\n";
 				}
 			}
 		}
-	} while(0);
+	} while ( 0 );
 
 	echo "</div>";
 
 	return $i;
-
 }
 
 /**
