Opened 9 years ago
Closed 7 years ago
#41687 closed defect (bug) (fixed)
wp_update_link() doesn't allow updating of link_owner
| Reported by: | pbiron | Owned by: | valentinbora |
|---|---|---|---|
| Priority: | low | Milestone: | 5.4 |
| Component: | Administration | Version: | 4.9 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: | administration |
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
@
7 years ago
- Focuses administration added
- Keywords commit added
- Milestone Awaiting Review → 5.4
- Owner set to
- Priority normal → low
- Status new → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
allow updates of link_owner