From d59c3711801e5d1b4cdaaa88f545ae9c1e439501 Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Tue, 13 May 2014 04:12:02 +0000 Subject: [PATCH] Fix incomplete inline documentation for the `wp_header_image_attachment_metadata` filter. See #26869. git-svn-id: https://develop.svn.wordpress.org/trunk@28375 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/custom-header.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/custom-header.php b/src/wp-admin/custom-header.php index 769e0f9a6e..c68d2b5eb8 100644 --- a/src/wp-admin/custom-header.php +++ b/src/wp-admin/custom-header.php @@ -1115,7 +1115,7 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> } /** - * Insert an attachment & its metadata. + * Insert an attachment and its metadata. * * @param array $object Attachment object. * @param string $cropped Cropped image URL. @@ -1126,8 +1126,13 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> $attachment_id = wp_insert_attachment( $object, $cropped ); $metadata = wp_generate_attachment_metadata( $attachment_id, $cropped ); /** - * Allows us to insert custom meta data for an attachment. + * Filter the header image attachment metadata. * + * @since 3.9.0 + * + * @see wp_generate_attachment_metadata() + * + * @param array $metadata Attachment metadata. */ $metadata = apply_filters( 'wp_header_image_attachment_metadata', $metadata ); wp_update_attachment_metadata( $attachment_id, $metadata );