[wp-trac] [WordPress Trac] #14389: Refactor wp_get_recent_posts to use get_posts function

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 22 16:33:14 UTC 2010


#14389: Refactor wp_get_recent_posts to use get_posts function
-------------------------+--------------------------------------------------
 Reporter:  blepoxp      |       Owner:  blepoxp                
     Type:  enhancement  |      Status:  new                    
 Priority:  normal       |   Milestone:  3.1                    
Component:  Performance  |     Version:                         
 Severity:  normal       |    Keywords:  has-patch needs-testing
-------------------------+--------------------------------------------------
Changes (by nacin):

  * component:  General => Performance
  * milestone:  Awaiting Review => 3.1


Comment:

 Instead of deprecating the argument, I think we can just do an is_numeric
 check on $args, and then turn it into `$args = array( 'numberposts' =>
 absint( $args ) )`.

 Also, I think there's probably a cleaner way to handle the array
 conversion?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14389#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list