Opened 3 years ago
Closed 4 months ago
#56851 closed defect (bug) (fixed)
link_updated not recording a timestamp
Reported by: |
|
Owned by: |
|
---|---|---|---|
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
This ticket was mentioned in Slack in #core by desrosj. View the logs.
3 years ago
This ticket was mentioned in Slack in #core by lenasterg. View the logs.
5 months ago
#5
@
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).
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
).
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: