wp-includes/blocks/details.php:20Sets fetchpriority="low" on all IMG tags within the collapsed Details block.
$block_contentstring$blockarraystringfunction block_core_details_set_img_fetchpriority_low( $block_content, array $block ): string { if ( ! is_string( $block_content ) ) { return ''; } // If the Details block is open by default, short-circuit to let core add fetchpriority=high if appropriate. if ( $block['attrs']['showContent'] ?? false ) { return $block_content; } $tags = new WP_HTML_Tag_Processor( $block_content ); while ( $tags->next_tag( 'IMG' ) ) { $tags->set_attribute( 'fetchpriority', 'low' ); } return $tags->get_updated_html();}Introduced in 7.0.0. Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
src/wp-includes/blocks/details.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.