Changeset 57721 for trunk/src/wp-includes/blocks/navigation.php
- Timestamp:
- 02/27/2024 02:46:29 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/navigation.php
r57663 r57721 555 555 $nav_element_context = data_wp_context( 556 556 array( 557 'overlayOpenedBy' => array(), 557 'overlayOpenedBy' => array( 558 'click' => false, 559 'hover' => false, 560 'focus' => false, 561 ), 558 562 'type' => 'overlay', 559 563 'roleAttribute' => '', … … 562 566 ); 563 567 $nav_element_directives = ' 564 data-wp-interactive="core/navigation" '568 data-wp-interactive="core/navigation" ' 565 569 . $nav_element_context; 566 570 … … 765 769 // Add directives to the parent `<li>`. 766 770 $tags->set_attribute( 'data-wp-interactive', 'core/navigation' ); 767 $tags->set_attribute( 'data-wp-context', '{ "submenuOpenedBy": { }, "type": "submenu" }' );771 $tags->set_attribute( 'data-wp-context', '{ "submenuOpenedBy": { "click": false, "hover": false, "focus": false }, "type": "submenu" }' ); 768 772 $tags->set_attribute( 'data-wp-watch', 'callbacks.initMenu' ); 769 773 $tags->set_attribute( 'data-wp-on--focusout', 'actions.handleMenuFocusout' );
Note: See TracChangeset
for help on using the changeset viewer.