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

WordPress Trac noreply at wordpress.org
Wed Jul 12 09:43:38 UTC 2023


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

 * keywords:  has-patch needs-refresh => has-patch needs-refresh needs-unit-
     tests


Comment:

 I have missed this PR, but I am happy to review anything that's flagged to
 me.

 Some key takeaways from https://developers.google.com/search/blog/2023/06
 /sitemaps-lastmod-ping (emphasis mine):

 > For instance, some site software may not be able to easily tell the last
 modification date of the homepage or a category page because it just
 aggregates the other pages on the site. **In these cases it's fine to
 leave out `lastmod` for those pages.**

 > **And when we say "last modification", we actually mean "last
 significant modification"**. If your CMS changed an insignificant piece of
 text in the sidebar or footer, you don't have to update the `lastmod`
 value for that page. However if you changed the primary text, added or
 changed structured data, or updated some links, do update the `lastmod`
 value.

 This aligns well with my
 [https://core.trac.wordpress.org/ticket/52099#comment:9 previous comment]
 about only adding `lastmod` where it makes sense and where we can easily
 get this data. Running `WP_Query` in loops is rather expensive. It's one
 of the reasons we originally removed lastmod support, see
 https://github.com/GoogleChromeLabs/wp-sitemaps/pull/145

 In short: keep it simple for now.

 Let's start by adding lastmod for individual posts. That should resolve
 this.

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


More information about the wp-trac mailing list