Make WordPress Core

Opened 3 years ago

Closed 4 months ago

#56851 closed defect (bug) (fixed)

link_updated not recording a timestamp

Reported by: lenasterg's profile lenasterg Owned by: audrasjb's profile audrasjb
Milestone: 6.8 Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

Suggested patch fix for the issued described in https://wordpress.org/support/topic/link_updated-not-recording-a-timestamp/ by @publicradio

I have noticed that when I add or update a link, and then print_r get_bookmarks, every link object in the array has [link_updated] => 0000-00-00 00:00:00 and this will never update, even if I update the link.

Is there a way I can get the links manager to actually record when the link was updated?

Change History (7)

This ticket was mentioned in PR #3496 on WordPress/wordpress-develop by @lenasterg.


3 years ago
#1

Fixes the issue described in https://wordpress.org/support/topic/link_updated-not-recording-a-timestamp/ When a link is created or updated the 'link_updated' date_time field remains '0000-00-00 00:00:00'.
With this fix, the 'link_updated' gets updated.

Trac ticket: https://core.trac.wordpress.org/ticket/56851

Trac ticket:

This ticket was mentioned in Slack in #core by desrosj. View the logs.


3 years ago

#3 @desrosj
3 years ago

  • Version trunk deleted

This ticket was mentioned in Slack in #core by lenasterg. View the logs.


5 months ago

#5 @audrasjb
5 months ago

  • Milestone changed from Awaiting Review to 6.8
  • Owner set to audrasjb
  • Status changed from new to reviewing

Moving for 6.8 consideration. Thanks @lenasterg for the ping.

@audrasjb commented on PR #3496:


4 months ago
#6

I can confirm the PR fixes the issue: the link_updated col in the database is modified when a link is edited. Also, it's filled when a link is created (which wasn't the case before).

https://github.com/user-attachments/assets/71fada94-af13-49d7-8903-d5df48fdc48f

Even if Link Manager is an old feature deprecated for a long time, it's still nice to fix that inconsistent behavior were a DB column is present but not even used at all despite its name (link_updated).

#7 @audrasjb
4 months ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 59923:

Bookmarks: Update link_updated when a link is created or updated.

This changeset fixes an issue where the link_updated field was not updated in the old Link Manager. When a link was created or updated the link_updated field remained 0000-00-00 00:00:00.

Props lenasterg, audrasjb.
Fixes #56851.

Note: See TracTickets for help on using tickets.