--- C:\DOCUME~1\Huskey\LOCALS~1\Temp\post.php-revBASE.svn000.tmp.php	J nov. 27 02:27:04 2008
+++ F:\Huskey\wordpress\wp-includes\post.php	J nov. 27 02:26:44 2008
@@ -1989,6 +1989,41 @@
 }
 
 /**
+ * Retrieve page parents with separator.
+ *
+ * @since 2.8
+ *
+ * @param int $id Page ID.
+ * @param bool $link Optional, default is false. Whether to format with link.
+ * @param string $separator Optional, default is '/'. How to separate pages.
+ * @param bool $nicename Optional, default is false. Whether to use nice name for display.
+ * @param array $visited Optional. Already linked to pages to prevent duplicates.
+ * @return string
+ */
+function get_page_parents( $id, $link = false, $separator = '/', $nicename = false, $visited = array() ) {
+	$chain = '';
+	$parent = &get_page( $id );
+	if ( is_wp_error( $parent ) )
+		return $parent;
+
+	if ( $nicename )
+		$name = $parent->post_name;
+	else
+		$name = $parent->post_title;
+
+	if ( $parent->post_parent && ( $parent->post_parent != $parent->ID ) && !in_array( $parent->post_parent, $visited ) ) {
+		$visited[] = $parent->post_parent;
+		$chain .= get_page_parents( $parent->post_parent, $link, $separator, $nicename, $visited );
+	}
+
+	if ( $link )
+		$chain .= '<a href="' . get_page_link( $parent->ID ) . '" title="' . $parent->post_title . '">'.$name.'</a>' . $separator;
+	else
+		$chain .= $name.$separator;
+	return $chain;
+}
+
+/**
  * Order the pages with children under parents in a flat list.
  *
  * Fetches the pages returned as a FLAT list, but arranged in order of their
