[wp-trac] [WordPress Trac] #11047: admin edit pages could loop

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 30 01:02:27 UTC 2009

#11047: admin edit pages could loop
 Reporter:  hailin        |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  2.9
Component:  General       |     Version:  2.7
 Severity:  normal        |    Keywords:     

Comment(by hailin):

 > _get_post_ancestors as we have the same bug there and then we can call
 that and use count() to get the depth we are at.

 When there is a loop, we probably can not use count since it will return
 We need to break out somehow, and return a dummy value such as 9999. Not
 sure it's going to be pretty.

Ticket URL: <http://core.trac.wordpress.org/ticket/11047#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list