Make WordPress Core

Ticket #50853: tck50853.2.diff

File tck50853.2.diff, 2.2 KB (added by stevenlinx, 4 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 f55cb39bf0..f3f0169ffc 100644
    a b function get_link_to_edit( $link ) { 
    142142}
    143143
    144144/**
    145  * Inserts/updates links into/in the database.
     145 * Inserts/updates links into/in the database. It runs all necessary sanitizing, provides default values if arguments are missing and finally saves the link.
    146146 *
    147147 * @since 2.0.0
    148148 *
    149149 * @global wpdb $wpdb WordPress database abstraction object.
    150150 *
    151  * @param array $linkdata Elements that make up the link to insert.
    152  * @param bool  $wp_error Optional. Whether to return a WP_Error object on failure. Default false.
     151 * @param array $linkdata {
     152 *     Elements that make up the link to insert.
     153 *     
     154 *     @type int    $link_id Optional.             The ID of the existing link if updating.
     155 *     @type string $link_url                      The URL the link points to.
     156 *     @type string $link_name                     The title of the link.
     157 *     @type string $link_image Optional.          A URL of an image.
     158 *     @type string $link_target Optional.         The target element for the anchor tag.
     159 *     @type string $link_description Optional.    A short description of the link.
     160 *     @type string $link_visible Optional.        Y means visible, anything else means not.
     161 *     @type int    $link_owner Optional.          A user ID.
     162 *     @type int    $link_rating Optional.         A rating for the link.
     163 *     @type string $link_updated Optional.        When the link was last updated.
     164 *     @type string $link_rel Optional.            A relationship of the link to you.
     165 *     @type string $link_notes Optional.          An extended description of or notes on the link.
     166 *     @type string $link_rss Optional.            An URL of an associated RSS feed.
     167 *     @type int    $link_category Optional.       The term ID of the link category. If empty, uses default link.
     168 * }
     169 * @param bool $wp_error Optional. Whether to return a WP_Error object on failure. Default false.
    153170 * @return int|WP_Error Value 0 or WP_Error on failure. The link ID on success.
    154171 */
    155172function wp_insert_link( $linkdata, $wp_error = false ) {