Ensure all duplicate calls of the `wp_create_file_in_uploads` filter are labeled as such.
See #26869. Built from https://develop.svn.wordpress.org/trunk@28212 git-svn-id: http://core.svn.wordpress.org/trunk@28042 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a866838b31
commit
ef643d9136
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue