Make WordPress Core


Ignore:
Timestamp:
02/27/2024 02:46:29 PM (8 months ago)
Author:
youknowriad
Message:

Editor: Update Packages with the latest bug fixes for 6.5 beta 3

It includes all the backports from this Gutenberg PR https://github.com/WordPress/gutenberg/pull/59394/

Props get_dave, youknowriad.
See #60315.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/navigation.php

    r57663 r57721  
    555555        $nav_element_context    = data_wp_context(
    556556            array(
    557                 'overlayOpenedBy' => array(),
     557                'overlayOpenedBy' => array(
     558                    'click' => false,
     559                    'hover' => false,
     560                    'focus' => false,
     561                ),
    558562                'type'            => 'overlay',
    559563                'roleAttribute'   => '',
     
    562566        );
    563567        $nav_element_directives = '
    564          data-wp-interactive="core/navigation"'
     568         data-wp-interactive="core/navigation" '
    565569        . $nav_element_context;
    566570
     
    765769        // Add directives to the parent `<li>`.
    766770        $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" }' );
    768772        $tags->set_attribute( 'data-wp-watch', 'callbacks.initMenu' );
    769773        $tags->set_attribute( 'data-wp-on--focusout', 'actions.handleMenuFocusout' );
Note: See TracChangeset for help on using the changeset viewer.