Refactor wp_get_recent_posts to use get_posts function
|Reported by:||blepoxp||Owned by:||blepoxp|
|Component:||Performance||Keywords:||has-patch needs testing|
The wp_get_recent_posts function currently only allows 1 argument for number of posts, queries the database directly with $wpdb->get_results( $sql ) and returns the result set as an assc array.
This refactor would retain the above functionality by default as well as make the result set much more flexible, allowing access to all the args available within the get_posts() function.
Change History (8)
- Component changed from General to Performance
- Milestone changed from Awaiting Review to 3.1