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
This commit is contained in:
parent
0321612c4d
commit
1c25b93a97
@ -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' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user