Make WordPress Core

Ticket #36736: get_link_to_edit.diff

File get_link_to_edit.diff, 650 bytes (added by tloureiro, 6 years ago)
  • src/wp-admin/includes/bookmark.php

    diff --git a/src/wp-admin/includes/bookmark.php b/src/wp-admin/includes/bookmark.php
    index 0d85026..aa4ab16 100644
    a b 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 ID or Bookmark of link to retrieve.
    135135 * @return object Link object for editing.
    136136 */
    137 function get_link_to_edit( $link_id ) {
    138         return get_bookmark( $link_id, OBJECT, 'edit' );
     137function get_link_to_edit( $bookmark ) {
     138        return get_bookmark( $bookmark, OBJECT, 'edit' );
    139139}
    140140
    141141/**