[wp-trac] [WordPress Trac] #36120: Move wp_*_link() functions into wp-includes

WordPress Trac noreply at wordpress.org
Sat Mar 5 14:51:06 UTC 2016

#36120: Move wp_*_link() functions into wp-includes
 Reporter:  JPry         |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
 The following link functions live in `wp-admin/includes/bookmark.php`:

 * `wp_insert_link()`
 * `wp_delete_link()`
 * `wp_update_link()`

 I would like to propose that these three functions be moved into `wp-
 includes/bookmark.php` so that they are available on any request, and not
 just requests inside `wp-admin`.

 It would also be necessary to move the `wp_set_link_cats()` so that it is
 available inside the `wp_insert_link()` function.

 Other similar functions live in `wp-includes` already, such as
 `wp_insert_post()`, `wp_insert_commet()`, etc. This change would allow
 links to work in the same way as those other content types.

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

More information about the wp-trac mailing list