WordPress.org

Make WordPress Core

Changeset 37353


Ignore:
Timestamp:
05/02/2016 11:42:27 PM (4 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/bookmark.php

    r37351 r37353  
    132132 * @since 2.0.0
    133133 *
    134  * @param int|stdClass $link_id Link ID or object to retrieve.
     134 * @param int|stdClass $link Link ID or object 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( $link ) {
     138    return get_bookmark( $link, OBJECT, 'edit' );
    139139}
    140140
Note: See TracChangeset for help on using the changeset viewer.