[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:26:22 UTC 2010
#14389: Refactor wp_get_recent_posts to use get_posts function
-------------------------+--------------------------------------------------
Reporter: blepoxp | Owner: blepoxp
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | 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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14389>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list