[wp-trac] Re: [WordPress Trac] #1277: Extend is_page() to support child_of and decendent_of

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 29 14:18:15 GMT 2006


#1277: Extend is_page() to support child_of and decendent_of
---------------------------------------+------------------------------------
 Reporter:  astorm                     |        Owner:  anonymous
     Type:  enhancement                |       Status:  new      
 Priority:  normal                     |    Milestone:  2.1      
Component:  General                    |      Version:  1.5.1    
 Severity:  normal                     |   Resolution:           
 Keywords:  bg|needs-patch, has-patch  |  
---------------------------------------+------------------------------------
Comment (by leflo):

 forgot: for 1277_is_page.diff is_page would be called like is_page('id=3')
 or is_page('descendent_of=3') or even is_page('id=3&descendent_of=3'),
 which would OR both queries.

 is_page supports: id, child_of, descendent_of, parent_of, ancestor_of.

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


More information about the wp-trac mailing list