Make WordPress Core

Changeset 60300


Ignore:
Timestamp:
06/11/2025 04:43:01 PM (6 weeks ago)
Author:
johnbillion
Message:

Media: Fix the documented return type of the wp_update_attachment_metadata() function.

Props justlevine

See #63268

File:
1 edited

Legend:

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

    r60293 r60300  
    68786878 * @param int   $attachment_id Attachment post ID.
    68796879 * @param array $data          Attachment meta data.
    6880  * @return int|false False if $post is invalid.
     6880 * @return int|bool Whether the metadata was successfully updated.
     6881 *                  True on success, the Meta ID if the key didn't exist.
     6882 *                  False if $post is invalid, on failure, or if $data is the same as the existing metadata.
    68816883 */
    68826884function wp_update_attachment_metadata( $attachment_id, $data ) {
Note: See TracChangeset for help on using the changeset viewer.