From d1137de3ded7f4a220c4bee51543bf6fe3260055 Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Fri, 25 Apr 2014 06:45:26 +0000 Subject: [PATCH] Ensure all duplicate calls of the `wp_create_file_in_uploads` filter are labeled as such. See #26869. git-svn-id: https://develop.svn.wordpress.org/trunk@28212 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/custom-header.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-admin/custom-header.php b/src/wp-admin/custom-header.php index 2a6a2f3083..2862f47a48 100644 --- a/src/wp-admin/custom-header.php +++ b/src/wp-admin/custom-header.php @@ -1153,6 +1153,7 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> wp_send_json_error( array( 'message' => __( 'Image could not be processed. Please go back and try again.' ) ) ); } + /** This filter is documented in wp-admin/custom-header.php */ $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication $object = $this->create_attachment_object( $cropped, $attachment_id );