[wp-trac] [WordPress Trac] #15029: Make it possible to determine resource in get_ancestors()

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 4 12:34:24 UTC 2010


#15029: Make it possible to determine resource in get_ancestors()
--------------------------+-------------------------------------------------
 Reporter:  filosofo      |       Owner:  filosofo 
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.1      
Component:  General       |     Version:  3.1      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by filosofo):

 Replying to [comment:6 scribu]:
 > By the way, shouldn't we also check if the post type is hierarchical,
 like we do for taxonomies?

 Agreed; I don't think `is_post_type_hierarchical` existed when I wrote the
 original patch.

 I also agree that checking query_var and maybe rewrite slug are good
 ideas.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15029#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list