WordPress.org

Making WordPress.org

Opened 3 years ago

Closed 3 years ago

#2258 closed defect (fixed)

Last_updated should be the date the plugin version was last changed, not last updated

Reported by: dd32 Owned by: dd32
Milestone: Priority: normal
Component: Plugin Directory Keywords:
Cc:

Description

At present the last_updated field includes some logic to ensure that it only gets set in the event that the plugin version changes (or couldn't be found, for reasons).

Unfortunately the logic for the override is a little reversed, although it overrides it to the current date when the version changes, it doesn't apply outside of that - leading to wp_insert_post() updating the field itself every time a trunk commit happens or a manual import updates the post.

Change History (1)

#1 @dd32
3 years ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 4389:

Plugin Directory: Don't allow wp_insert_post() to update the last_updated field (post_modified) on every import action (trunk, manual imports, etc).

Fixes #2258

Note: See TracTickets for help on using tickets.