- Timestamp:
- 03/02/2024 08:13:02 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-custom-image-header.php
r57364 r57755 1078 1078 $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication. 1079 1079 1080 $attachment = $this->create_attachment_object( $cropped, $attachment_id);1080 $attachment = wp_copy_parent_attachment_properties( $cropped, $attachment_id, 'custom-header' ); 1081 1081 1082 1082 if ( ! empty( $_POST['create-new-attachment'] ) ) { … … 1315 1315 * 1316 1316 * @since 3.9.0 1317 * @deprecated 6.5.0 1317 1318 * 1318 1319 * @param string $cropped Cropped image URL. … … 1321 1322 */ 1322 1323 final public function create_attachment_object( $cropped, $parent_attachment_id ) { 1324 _deprecated_function( __METHOD__, '6.5.0', 'wp_copy_parent_attachment_properties()' ); 1323 1325 $parent = get_post( $parent_attachment_id ); 1324 1326 $parent_url = wp_get_attachment_url( $parent->ID ); … … 1422 1424 $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication. 1423 1425 1424 $attachment = $this->create_attachment_object( $cropped, $attachment_id);1426 $attachment = wp_copy_parent_attachment_properties( $cropped, $attachment_id, 'custom-header' ); 1425 1427 1426 1428 $previous = $this->get_previous_crop( $attachment );
Note: See TracChangeset
for help on using the changeset viewer.