[wp-trac] [WordPress Trac] #36736: get_link_to_edit function displaying wrong param documentation

WordPress Trac noreply at wordpress.org
Mon May 2 23:13:10 UTC 2016


#36736: get_link_to_edit function displaying wrong param documentation
-------------------------+-----------------------------
 Reporter:  tloureiro    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 The bookmark.php's function get_link_to_edit currently displays

 * @param int $link_id ID of link to retrieve.

 but when we look at get_bookmark function, it accepts both id AND stdClass

 So we changed both function documentation and variable name (from $link_id
 to $bookmark ) to reflect parameter possibilities.

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


More information about the wp-trac mailing list