[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 18:34:54 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
Component:  Feeds                                |  Release
 Severity:  normal                               |     Version:  2.2.1
 Keywords:  good-first-bug has-patch needs-      |  Resolution:
  testing                                        |     Focuses:  template
-------------------------------------------------+-------------------------

Comment (by MikeNGarrett):

 This looks really good. We'll have to replicate this for the other feed
 types once we get a final version.

 Here's another question: would you need to make another db query to get
 the last modified posts? You already have a list of posts, so instead of
 building an array of IDs you should be able to build an array of
 post_modified values and return the latest.

 I would only have 2 concerns if we went that direction:
 1. What happens when feeds are not sorted by latest?
 2. Should we be concerned about pagination?

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


More information about the wp-trac mailing list