Index: post.php
===================================================================
--- post.php	(revision 10584)
+++ post.php	(working copy)
@@ -1528,7 +1528,7 @@
 	// new-style support for all tag-like taxonomies
 	if ( !empty($tax_input) ) {
 		foreach ( $tax_input as $taxonomy => $tags ) {
-			wp_set_post_terms( $post_ID, $tags, $taxonomy );			
+			wp_set_post_terms( $post_ID, $tags, $taxonomy );
 		}
 	}
 
@@ -2241,17 +2241,20 @@
 	if ( !empty($exclude_tree) ) {
 		$exclude = array();
 
-		$exclude = (int) $exclude_tree;
-		$children = get_page_children($exclude, $pages);
-		$excludes = array();
-		foreach ( $children as $child )
-			$excludes[] = $child->ID;
-		$excludes[] = $exclude;
-		$total = count($pages);
-		for ( $i = 0; $i < $total; $i++ ) {
-			if ( in_array($pages[$i]->ID, $excludes) )
-				unset($pages[$i]);
-		}
+		$exclude = explode(',',$exclude_tree);
+
+        foreach ($exclude as $exclude_page) {
+			$children = get_page_children($exclude_page, $pages);
+			$excludes = array();
+			foreach ( $children as $child )
+				$excludes[] = $child->ID;
+			$excludes[] = $exclude_page;
+			$total = count($pages);
+			for ( $i = 0; $i < $total; $i++ ) {
+				if ( in_array($pages[$i]->ID, $excludes) )
+					unset($pages[$i]);
+			}
+        }
 	}
 
 	$cache[ $key ] = $pages;

