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

WordPress Trac wp-trac at lists.automattic.com
Sat Sep 30 11:33:17 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:  has-patch    |  
-------------------------+--------------------------------------------------
Comment (by markjaquith):

 Unless I'm mistaken, this patch kills backwards compatibility for:

 is_page(1)

 is_page('about')


 You should move that old code above your parse_str() call, so those still
 work.

 Matching by name/slug of descendants or ancestors would be nice, but at
 least keep current capabilities implemented.

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


More information about the wp-trac mailing list