WordPress Version: 6.4
/**
* Removes the `theme` attribute from a given template part block.
*
* @since 6.4.0
* @access private
*
* @param array $block a parsed block.
*/
function _remove_theme_attribute_from_template_part_block(&$block)
{
if ('core/template-part' === $block['blockName'] && isset($block['attrs']['theme'])) {
unset($block['attrs']['theme']);
}
}