[wp-trac] [WordPress Trac] #52099: Sitemaps "Last Modified" (lastmod) tag

WordPress Trac noreply at wordpress.org
Mon Oct 23 15:40:59 UTC 2023


#52099: Sitemaps "Last Modified" (lastmod) tag
--------------------------------------+-------------------------
 Reporter:  junaidbhura               |       Owner:  swissspidy
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.5
Component:  Sitemaps                  |     Version:  5.5
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-------------------------
Changes (by swissspidy):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56985" 56985]:
 {{{
 #!CommitTicketReference repository="" revision="56985"
 Sitemaps: add `lastmod` for individual posts and the homepage.

 When the XML sitemaps feature was originally introduced, the `lastmod`
 field was omitted because guidance at the time indicated it was less
 important for search engines, plus for some entities it was
 computationally expensive to add. Now that the guidance has slightly
 changed, we are revisiting this and adding `lastmod` where easily
 possible.

 - Adds `lastmod` to all individual post objects (of any post type) in the
 sitemap
 - Adds `lastmod` to the homepage sitemap entry if the homepage is set to
 display the latest posts.

 No `lastmod` is added for the individual sitemap pages in the sitemap
 index, nor for term archives or user archives. Those enhancements require
 additional changes, such as storing the modified date for a taxonomy term
 when something is added to that term. They can be revisited in separate
 follow-up tickets.

 Props swissspidy, joemcgill.
 Fixes #52099
 }}}

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


More information about the wp-trac mailing list