[wp-trac] [WordPress Trac] #12821: Merge get_posts() and get_pages()
WordPress Trac
wp-trac at lists.automattic.com
Tue Jan 24 22:47:22 UTC 2012
#12821: Merge get_posts() and get_pages()
-------------------------------------+-----------------------------
Reporter: mikeschinkel | Owner: garyc40
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: Post Types | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+-----------------------------
Comment (by dbernar1):
I made a note while refactoring the code:
"get_pages() had this additional sorting field. Figure out what to do
about this one: $allowed_keys = array( 'modified_gmt', 'post_modified_gmt'
);"
Basically, WP_Query::get_posts has:
"$allowed_keys = array('name', 'author', 'date', 'title', 'modified',
'menu_order', 'parent', 'ID', 'rand', 'comment_count');" on line 2332
which means it does not support post_modified_gmt, from what I can tell.
What shall we do about that?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12821#comment:41>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list