Skip to content

Commit 657f809

Browse files
Editor: Revert core/search block markup change.
The `src/wp-includes/blocks/*.php` render files are generated from the Gutenberg build via tools/gutenberg/copy.js, so editing search.php directly here is reverted by the build and fails the `git diff --exit-code` CI check. The `<search>` element change for the core/search block is handled in the Gutenberg repository instead, and will flow into Core through the next block package sync. This PR now covers only the Core-maintained `get_search_form()` function and the bundled classic theme `searchform.php` templates.
1 parent a78874b commit 657f809

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/blocks/search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function render_block_core_search( $attributes ) {
189189
}
190190

191191
return sprintf(
192-
'<search><form method="get" action="%1s" %2s %3s>%4s</form></search>',
192+
'<form role="search" method="get" action="%1s" %2s %3s>%4s</form>',
193193
esc_url( home_url( '/' ) ),
194194
$wrapper_attributes,
195195
$form_directives,

0 commit comments

Comments
 (0)