Support depth argument to get_pages.
|Reported by:||mellis||Owned by:||anonymous|
wp_list_pages accepts a depth argument which limits the number of levels of the page hierarchy to descend. It would be great if the depth argument were promoted to the get_pages function to ease custom listing of part of the page hierarchy. This would be much simpler than using a Walker or manually limiting the depth of pages listed.