[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:27:52 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 westi):

 {{{ $results = $wpdb->get_results("SELECT ID, post_parent FROM
 $wpdb->posts WHERE post_type = 'page'"); }}}

 I don't like the scalability implications of this.

 Can you not switch the patch to do specific queries for the different
 request types so as to ensure that the SQL request is bounded small
 enough?

 This may make decendent_of stuff harder to work out - can it use any of
 the walker classes that exist as well?

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


More information about the wp-trac mailing list