From ebfc1467bb8fc7611410a135e1ea44df0327b63f Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 2 May 2016 23:43: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. Built from https://develop.svn.wordpress.org/trunk@37353 git-svn-id: http://core.svn.wordpress.org/trunk@37319 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/bookmark.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/bookmark.php b/wp-admin/includes/bookmark.php index 0f91fec86e..f433c85ebd 100644 --- a/wp-admin/includes/bookmark.php +++ b/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' ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 3243b86445..c167a571e3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37352'; +$wp_version = '4.6-alpha-37353'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.