Make WordPress Core


Ignore:
Timestamp:
02/13/2024 01:10:05 PM (9 months ago)
Author:
youknowriad
Message:

Editor: Update Packages with the latest bug fixes for 6.5 beta1.

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

Props youknowriad, get_dave.
See #60315.

File:
1 edited

Legend:

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

    r57578 r57619  
    558558        }
    559559        // When adding to this array be mindful of security concerns.
    560         $nav_element_context    = wp_json_encode(
     560        $nav_element_context    = data_wp_context(
    561561            array(
    562562                'overlayOpenedBy' => array(),
     
    564564                'roleAttribute'   => '',
    565565                'ariaLabel'       => __( 'Menu' ),
    566             ),
    567             JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP
     566            )
    568567        );
    569568        $nav_element_directives = '
    570             data-wp-interactive=\'{"namespace":"core/navigation"}\'
    571             data-wp-context=\'' . $nav_element_context . '\'
    572         ';
     569         data-wp-interactive="core/navigation"'
     570        . $nav_element_context;
    573571
    574572        /*
     
    781779    ) ) {
    782780        // Add directives to the parent `<li>`.
    783         $tags->set_attribute( 'data-wp-interactive', '{ "namespace": "core/navigation" }' );
     781        $tags->set_attribute( 'data-wp-interactive', 'core/navigation' );
    784782        $tags->set_attribute( 'data-wp-context', '{ "submenuOpenedBy": {}, "type": "submenu" }' );
    785783        $tags->set_attribute( 'data-wp-watch', 'callbacks.initMenu' );
Note: See TracChangeset for help on using the changeset viewer.