From 919019865a5c91744a2ea667f01ca2760ac69061 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 28 Jan 2021 10:40:31 +0000 Subject: [PATCH] Docs: Revert documentation change for `wp_get_attachment_metadata()`. This more accurately describes the behavior of the function, and is more consistent with the documentation for other post and attachment functions. Follow-up to [50039]. Props Mista-Flo. See #52196. git-svn-id: https://develop.svn.wordpress.org/trunk@50051 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index b34d8e9e63..f04900aed3 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -6114,7 +6114,7 @@ function wp_delete_attachment_files( $post_id, $meta, $backup_sizes, $file ) { * * @since 2.1.0 * - * @param int $attachment_id Attachment post ID. Default 0. + * @param int $attachment_id Attachment post ID. Defaults to global $post. * @param bool $unfiltered Optional. If true, filters are not run. Default false. * @return array|false { * Attachment metadata. False on failure.