[wp-trac] [WordPress Trac] #54880: Docblock for wp_insert_link is inaccurate or function is missing functionality

WordPress Trac noreply at wordpress.org
Sat Jan 22 04:00:09 UTC 2022


#54880: Docblock for wp_insert_link is inaccurate or function is missing
functionality
--------------------------+-----------------------------
 Reporter:  dshanske      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  low           |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.5
 Severity:  trivial       |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 Aware that the function is not actively maintained, but it references that
 link_updated can be set using the function.

 The function adds 'link_url', 'link_name', 'link_image', 'link_target',
 'link_description', 'link_visible', 'link_owner', 'link_rating',
 'link_rel', 'link_notes', and 'link_rss' to the database.

 That misses link_updated, which the function says it provides.

 There are two paths to resolution. We can note it in documentation or just
 simply fix it. Either seem to be a valid path.

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


More information about the wp-trac mailing list