From 1c25b93a97ace9752ad4492c58a588cd5d8047ba Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 2 May 2016 23:42:27 +0000 Subject: [PATCH] Links: Rename the `$link_id` parameter in `get_link_to_edit()` to `$link` to better reflect that it can accept a link ID or object. Props tloureiro for the initial patch. Fixes #36736. git-svn-id: https://develop.svn.wordpress.org/trunk@37353 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/bookmark.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/bookmark.php b/src/wp-admin/includes/bookmark.php index 0f91fec86e..f433c85ebd 100644 --- a/src/wp-admin/includes/bookmark.php +++ b/src/wp-admin/includes/bookmark.php @@ -131,11 +131,11 @@ function wp_get_link_cats( $link_id = 0 ) { * * @since 2.0.0 * - * @param int|stdClass $link_id Link ID or object to retrieve. + * @param int|stdClass $link Link ID or object to retrieve. * @return object Link object for editing. */ -function get_link_to_edit( $link_id ) { - return get_bookmark( $link_id, OBJECT, 'edit' ); +function get_link_to_edit( $link ) { + return get_bookmark( $link, OBJECT, 'edit' ); } /**