diff --git a/src/wp-admin/includes/bookmark.php b/src/wp-admin/includes/bookmark.php
index f55cb39bf0..9272ad8116 100644
|
a
|
b
|
function get_link_to_edit( $link ) { |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | /** |
| 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. |
| 146 | 146 | * |
| 147 | 147 | * @since 2.0.0 |
| 148 | 148 | * |
| 149 | 149 | * @global wpdb $wpdb WordPress database abstraction object. |
| 150 | 150 | * |
| 151 | | * @param array $linkdata Elements that make up the link to insert. |
| | 151 | * @param array $linkdata { |
| | 152 | * Elements that make up the link to insert. |
| | 153 | * |
| | 154 | * @type int $link_id The ID of the existing link if updating. |
| | 155 | * @type varchar $link_url The URL the link points to. |
| | 156 | * @type varchar $link_name The title of the link. |
| | 157 | * @type varchar $link_image A URL of an image. |
| | 158 | * @type varchar $link_target The target element for the anchor tag. |
| | 159 | * @type varchar $link_description A short description of the link. |
| | 160 | * @type varchar $link_visible Y means visible, anything else means not. |
| | 161 | * @type int $link_owner A user ID. |
| | 162 | * @type int $link_rating A rating for the link. |
| | 163 | * @type datetime $link_updated When the link was last updated. |
| | 164 | * @type varchar $link_rel A relationship of the link to you. |
| | 165 | * @type text $link_notes An extended description of or notes on the link. |
| | 166 | * @type varchar $link_rss An URL of an associated RSS feed. |
| | 167 | * @type int $link_category The term ID of the link category. If empty, uses default link. |
| | 168 | * } |
| 152 | 169 | * @param bool $wp_error Optional. Whether to return a WP_Error object on failure. Default false. |
| 153 | 170 | * @return int|WP_Error Value 0 or WP_Error on failure. The link ID on success. |
| 154 | 171 | */ |