﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
12443,General get_ancestors() function,filosofo,filosofo,"`get_ancestors([object_id], [object_type])` returns an array of the ancestor objects, starting from closest in hierarchy to highest.

This would be helpful for determining general inheritance in themes and plugins.

For example:

{{{
if ( in_array(123, get_ancestors(456, 'page') ) ) {
   // highlight a menu item, or query a particular set of objects
}
}}}",enhancement,closed,normal,3.1,Taxonomy,3.0,normal,fixed,has-patch,WordPress@… kevinB
