Skip to content

Commit a76767e

Browse files
committed
Links: Clarify documentation for the $link_id parameter to mention that it accepts either an integer or object.
Props tloureiro. See #36736. git-svn-id: https://develop.svn.wordpress.org/trunk@37351 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 018f988 commit a76767e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-admin/includes/bookmark.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function wp_get_link_cats( $link_id = 0 ) {
131131
*
132132
* @since 2.0.0
133133
*
134-
* @param int $link_id ID of link to retrieve.
134+
* @param int|stdClass $link_id Link ID or object to retrieve.
135135
* @return object Link object for editing.
136136
*/
137137
function get_link_to_edit( $link_id ) {

0 commit comments

Comments
 (0)