[wp-trac] Re: [WordPress Trac] #4531: Add limit parameter to get_pages

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 8 02:37:43 GMT 2007

#4531: Add limit parameter to get_pages
 Reporter:  DD32                               |        Owner:  anonymous  
     Type:  defect                             |       Status:  new        
 Priority:  normal                             |    Milestone:  2.3 (trunk)
Component:  Template                           |      Version:             
 Severity:  minor                              |   Resolution:             
 Keywords:  get_pages has-patch needs-testing  |  
Comment (by DD32):

 Replying to [comment:5 foolswisdom]:
 > Replying to [comment:4 rob1n]:
 > > Why is it 'numberposts'? Why not 'numberpages'?
 > DD32 commented on wp-hackers about that typo that is in the ticket, but
 not in the patch.

 See comment 1:

 [comment:1 DD32]:
 > 'Doh! Sorry, I meant "adds 'numberpages'" in the Description :)

 If we want to standarise on 'number' and 'offset' for all functions, then
 it might be an idea to depreciate "numberposts" in get_posts too:
 function get_posts($args) {
         global $wpdb;

         $defaults = array(
                 'numberposts' => 5, 'offset' => 0,

Ticket URL: <http://trac.wordpress.org/ticket/4531#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list