Changeset 56929
- Timestamp:
- 10/13/2023 12:18:19 PM (16 months ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-custom-background.php
r56599 r56929 572 572 set_theme_mod( 'background_image_thumb', sanitize_url( $thumbnail[0] ) ); 573 573 574 /** This action is documented in wp-admin/includes/class-custom-image-header.php */ 575 do_action( 'wp_create_file_in_uploads', $file, $id ); // For replication. 574 /** This filter is documented in wp-admin/includes/class-custom-image-header.php */ 575 $file = apply_filters( 'wp_create_file_in_uploads', $file, $id ); // For replication. 576 576 577 $this->updated = true; 577 578 } -
trunk/src/wp-admin/includes/class-custom-image-header.php
r56599 r56929 883 883 884 884 /** 885 * Fires after the header image is set or an error is returned. 885 * Filters the attachment file path after the custom header or background image is set. 886 * 887 * Used for file replication. 886 888 * 887 889 * @since 2.1.0 … … 890 892 * @param int $attachment_id Attachment ID. 891 893 */ 892 do_action( 'wp_create_file_in_uploads', $file, $attachment_id ); // For replication.894 $file = apply_filters( 'wp_create_file_in_uploads', $file, $attachment_id ); // For replication. 893 895 894 896 return $this->finished();
Note: See TracChangeset
for help on using the changeset viewer.