[wp-trac] [WordPress Trac] #14368: make get_posts() accept all "post" fields
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 20 23:58:41 UTC 2010
#14368: make get_posts() accept all "post" fields
--------------------------+-------------------------------------------------
Reporter: wjm | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Right now, some post's fields were not accepted when retrieving posts
(even though they were documented in codex . for example "name" (slug)
was missing).
this patch sorts the elements in the $allow_keys array (in the same order
as the db' s columns) and adds the missing ones, I added every field
except the ones that were long text fields (content, excerpt, etc)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14368>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list