wp-includes/blocks/navigation.php:1173Add Interactivity API directives to the navigation-overlay-close block markup using the Tag Processor.
$tagsWP_HTML_Tag_Processorstringfunction block_core_navigation_add_directives_to_overlay_close( $tags ) { // Find all navigation-overlay-close buttons. while ( $tags->next_tag( array( 'tag_name' => 'BUTTON', 'class_name' => 'wp-block-navigation-overlay-close', ) ) ) { // Add the same close directive as the default close button. $tags->set_attribute( 'data-wp-on--click', 'actions.closeMenuOnClick' ); } return $tags->get_updated_html();}Introduced in 6.5.0. Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
src/wp-includes/blocks/navigation.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.