Opened 9 years ago
Closed 6 years ago
#41687 closed defect (bug) (fixed)
wp_update_link() doesn't allow updating of link_owner
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.4 | Priority: | low |
| Severity: | normal | Version: | 4.9 |
| Component: | Administration | Keywords: | has-patch commit |
| Focuses: | administration | Cc: |
Description
The title says it all.
Example:
$link_id = wp_insert_link( array(
'link_name' => 'foo',
'link_url' => 'http://example.com',
'link_owner' => 1,
) );
// $link_id has link_url == http://example.com and link_owner == 1
wp_update_link( array(
'link_id' => $link_id,
'link_url' => 'http://example.org',
'link_owner' => 2,
) );
// $link_id now has link_url == 'http://example.org, but still has link_owner == 1 :-(
Attachments (1)
Change History (6)
#1
@
9 years ago
- Keywords has-patch added
related: #2804
@nikhilgupte reported the same bug 11 years ago and his ticket was closed as invalid because "link ownership is being deprecated", which obviously never happened.
#2
@
6 years ago
- Focuses administration added
- Keywords commit added
- Milestone changed from Awaiting Review to 5.4
- Owner set to valentinbora
- Priority changed from normal to low
- Status changed from new to accepted
Patch 41687.diff applies cleanly, thanks @pbiron. Looks like a trivial change, suggesting this for commit.
Note: See
TracTickets for help on using
tickets.
allow updates of link_owner