[wp-trac] [WordPress Trac] #4575: Add functions to return the last-modified timestamp of a category/tag

WordPress Trac noreply at wordpress.org
Wed Apr 22 16:08:32 UTC 2015


#4575: Add functions to return the last-modified timestamp of a category/tag
----------------------------------------+-----------------------------
 Reporter:  delusions                   |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  Feeds                       |     Version:  2.2.1
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:  template
----------------------------------------+-----------------------------

Comment (by stevenkword):

 @MikeNGarrett -- After having put some more thought towards it, I agree
 that creating a new hash would be messy so I've revised my approach.

 4575.diff adds a new methods specifically for returning the most recently
 modified post or comment from any given feed.  It uses the default
 WP_Query object to obtain a list of post object IDs displayed in the feed
 and then leverages `$wpdb->get_col()` to retrieve the most recently
 modified post/comment.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/4575#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list