wp-admin/includes/class-wp-site-icon.php:229Adds custom image sizes when meta data for an image is requested, that happens to be used as Site Icon.
$valuenull|array|string$post_idint$meta_keystring$singleboolarray|null|string public function get_post_metadata( $value, $post_id, $meta_key, $single ) { if ( $single && '_wp_attachment_backup_sizes' === $meta_key ) { $site_icon_id = (int) get_option( 'site_icon' ); if ( $post_id === $site_icon_id ) { add_filter( 'intermediate_image_sizes', array( $this, 'intermediate_image_sizes' ) ); } } return $value; }Introduced in 4.3.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-admin/includes/class-wp-site-icon.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.