for WP version 2.9.2
i have read that this is fixed, but i dont see it.
i reworked come core code, but don’t know where to submit it.
change line 2620+ of wp-includes/post.php to:
if ( !empty($exclude_tree) ) {
$exclude_trees = preg_split('/[\s,]+/',$exclude_tree);
if ( count($exclude_trees) ) {
$num_pages = count($pages);
foreach ( $exclude_trees as $tree ) {
$exclude = (int) $tree;
$children = get_page_children($exclude, $pages);
$excludes = array();
foreach ( $children as $child )
$excludes[] = $child->ID;
$excludes[] = $exclude;
for ( $i = 0; $i < $num_pages; $i++ ) {
if ( in_array($pages[$i]->ID, $excludes) )
unset($pages[$i]);
}
}
}
}