Make WordPress Core


Ignore:
Timestamp:
09/27/2022 05:30:41 PM (3 years ago)
Author:
hellofromTonya
Message:

Editor: Update packages for 6.1 Beta 2.

Package updates for bug and regression fixes:

  • @wordpress/block-directory: 3.15.3
  • @wordpress/block-editor: 10.0.3
  • @wordpress/block-library: 7.14.3
  • @wordpress/block-serialization-default-parser: 4.17.1
  • @wordpress/blocks: 11.16.3
  • @wordpress/components: 21.0.3
  • @wordpress/compose: 5.15.2
  • @wordpress/core-data: 5.0.3
  • @wordpress/customize-widgets: 3.14.3
  • @wordpress/edit-post: 6.14.3
  • @wordpress/edit-site: 4.14.4
  • @wordpress/edit-widgets: 4.14.3
  • @wordpress/editor: 12.16.3
  • @wordpress/format-library: 3.15.3
  • @wordpress/interface: 4.16.3
  • @wordpress/list-reusable-blocks: 3.15.3
  • @wordpress/nux: 5.15.3
  • @wordpress/preferences: 2.9.3
  • @wordpress/reusable-blocks: 3.15.3
  • @wordpress/server-side-render: 3.15.3
  • @wordpress/style-engine: 1.0.2
  • @wordpress/widgets: 2.15.3

References:

Props bernhard-reiter, cbravobernal.
See #56467.

File:
1 edited

Legend:

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

    r54257 r54335  
    184184        $item_url = isset( $attributes['url'] ) ? $attributes['url'] : '';
    185185        // Start appending HTML attributes to anchor tag.
    186         $html .= '<a class="wp-block-navigation-item__content" href="' . esc_url( $item_url ) . '"';
     186        $html .= '<a class="wp-block-navigation-item__content"';
     187
     188        // The href attribute on a and area elements is not required;
     189        // when those elements do not have href attributes they do not create hyperlinks.
     190        // But also The href attribute must have a value that is a valid URL potentially
     191        // surrounded by spaces.
     192        // see: https://html.spec.whatwg.org/multipage/links.html#links-created-by-a-and-area-elements.
     193        if ( ! empty( $item_url ) ) {
     194            $html .= ' href="' . esc_url( $item_url ) . '"';
     195        }
    187196
    188197        if ( $is_active ) {
Note: See TracChangeset for help on using the changeset viewer.