Make WordPress Core


Ignore:
Timestamp:
07/14/2026 05:03:51 PM (3 months ago)
Author:
wildworks
Message:

General: Bump the pinned hash for Gutenberg to v23.5.0.

This updates the pinned commit hash of the Gutenberg repository from 98a796c8780c480ef7bcfe03c42302d9564d785c (version 23.4.0) to b5574edc8a952b2f1e528693761a97b1b3b580eb (version 23.5.0).

A full list of changes included in this commit can be found on GitHub: ​https://github.com/WordPress/gutenberg/compare/v23.4.0..v23.5.0.

The following commits are included:

Props desrosj, wildworks.
Fixes #65589.

File:
1 edited

Legend:

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

    r62580 r62738  
    192192        }
    193193
     194        /*
     195         * The semantic <search> landmark wrapper is opt-in to preserve back
     196         * compatibility with themes targeting <form role="search">. The block
     197         * exposes a per-instance HTML element selector with three values:
     198         *
     199         *   - 'search' forces the <search> wrapper
     200         *   - 'form'   forces the original <form role="search"> markup
     201         *   - empty    defers to the 'search-element' html5 sub-feature
     202         *              ( add_theme_support( 'html5', array( 'search-element' ) ) ),
     203         *              matching the opt-in added to get_search_form() in core
     204         */
     205        $tag_name           = $attributes['tagName'] ?? '';
     206        $use_search_element = 'search' === $tag_name || ( '' === $tag_name && current_theme_supports( 'html5', 'search-element' ) );
     207
     208        /*
     209         * Only the wrapper markup differs between the semantic <search> landmark
     210         * and the classic <form role="search">. Positional specifiers keep a
     211         * single argument list usable by both formats, since the action URL
     212         * precedes the wrapper attributes in the <search> variant.
     213         */
     214        $format = $use_search_element
     215                ? '<search %2$s %3$s><form method="get" action="%1$s">%4$s</form></search>'
     216                : '<form role="search" method="get" action="%1$s" %2$s %3$s>%4$s</form>';
     217
    194218        return sprintf(
    195                 '<form role="search" method="get" action="%1s" %2s %3s>%4s</form>',
     219                $format,
    196220                esc_url( home_url( '/' ) ),
    197221                $wrapper_attributes,
Note: See TracChangeset for help on using the changeset viewer.