Skip to content

Commit 8b65593

Browse files
committed
docs: fix wp_update_attachment_metadata() return type to bool
1 parent 8a10fbf commit 8b65593

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6900,7 +6900,7 @@ function wp_get_attachment_metadata( $attachment_id = 0, $unfiltered = false ) {
69006900
*
69016901
* @param int $attachment_id Attachment post ID.
69026902
* @param array $data Attachment meta data.
6903-
* @return int|false False if $post is invalid.
6903+
* @return bool Whether the metadata was successfully updated. False if $post is invalid.
69046904
*/
69056905
function wp_update_attachment_metadata( $attachment_id, $data ) {
69066906
$attachment_id = (int) $attachment_id;

0 commit comments

Comments
 (0)