[wp-trac] [WordPress Trac] #9636: get_lastpost* functions only look at post_status

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 24 16:36:57 GMT 2009


#9636: get_lastpost* functions only look at post_status
-------------------------+--------------------------------------------------
 Reporter:  mtdewvirus   |       Owner:  anonymous       
     Type:  enhancement  |      Status:  new             
 Priority:  normal       |   Milestone:  Unassigned      
Component:  General      |     Version:  2.8             
 Severity:  normal       |    Keywords:  date,posts,pages
-------------------------+--------------------------------------------------
 The get_lastpostdate and get_lastpostmodified functions only use
 post_status='publish' in the query. According to the name of the function,
 shouldn't they look for post_type='post'?

 Possible solutions:
  * Modify current functions to only query posts, create another set of
 functions get_lastpage* to query pages, and a generic set that uses
 current logic
  * Add a parameter to the current functions to limit by posts or pages.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9636>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list