[wp-trac] [WordPress Trac] #41687: wp_update_link() doesn't allow updating of link_owner

WordPress Trac noreply at wordpress.org
Mon Aug 21 17:13:22 UTC 2017


#41687: wp_update_link() doesn't allow updating of link_owner
----------------------------+-----------------------------
 Reporter:  pbiron          |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 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 :-(
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41687>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list