Make WordPress Core

Opened 4 years ago

Closed 19 months ago

#56851 closed defect (bug) (fixed)

link_updated not recording a timestamp

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

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.


4 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.


4 years ago

#3 @desrosj
4 years ago

  • Version trunk

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


20 months ago

#5 @audrasjb
20 months ago

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

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

​@audrasjb commented on ​PR #3496:


19 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
19 months ago

  • Resolution → fixed
  • Status reviewing → 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.