[wp-trac] [WordPress Trac] #7697: Disallow page being its own parent

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 5 21:32:42 GMT 2008


#7697: Disallow page being its own parent
----------------------------+-----------------------------------------------
 Reporter:  mtekk           |       Owner:  anonymous  
     Type:  defect          |      Status:  new        
 Priority:  normal          |   Milestone:  2.7        
Component:  Administration  |     Version:  2.7        
 Severity:  normal          |    Keywords:  page parent
----------------------------+-----------------------------------------------
 I noticed this in the 2.7-hemorrhage branch that the dashboard page editor
 allows you to set the current page as its own parent. If this happens,
 many things break as PHP enters an infinite query loop. Two things should
 be done, not show it in the edit page. Additionally, when reading the
 parent_id, it should be checked to make sure it is not the same as the
 current page's ID this prevents the infinite loop from ever occurring from
 this condition. This was observed in r8822.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7697>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list