close

Make WordPress Core

Changeset 62024


Ignore:
Timestamp:
03/13/2026 10:43:20 PM (11 hours ago)
Author:
SergeyBiryukov
Message:

Docs: Correct return type for add_link(), edit_link(), and wp_update_link().

Follow-up to [8758], [15564].

Props marian1.
Fixes #64764.

File:
1 edited

Legend:

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

    r59923 r62024  
    1212 * @since 2.0.0
    1313 *
    14  * @return int|WP_Error Value 0 or WP_Error on failure. The link ID on success.
     14 * @return int The link ID on success. The value 0 on failure.
    1515 */
    1616function add_link() {
     
    2424 *
    2525 * @param int $link_id Optional. ID of the link to edit. Default 0.
    26  * @return int|WP_Error Value 0 or WP_Error on failure. The link ID on success.
     26 * @return int The link ID on success. The value 0 on failure.
    2727 */
    2828function edit_link( $link_id = 0 ) {
     
    170170 * }
    171171 * @param bool  $wp_error Optional. Whether to return a WP_Error object on failure. Default false.
    172  * @return int|WP_Error Value 0 or WP_Error on failure. The link ID on success.
     172 * @return int|WP_Error The link ID on success. The value 0 or WP_Error on failure.
    173173 */
    174174function wp_insert_link( $linkdata, $wp_error = false ) {
     
    296296 *
    297297 * @param array $linkdata Link data to update. See wp_insert_link() for accepted arguments.
    298  * @return int|WP_Error Value 0 or WP_Error on failure. The updated link ID on success.
     298 * @return int The updated link ID on success. The value 0 on failure.
    299299 */
    300300function wp_update_link( $linkdata ) {
Note: See TracChangeset for help on using the changeset viewer.