diff --git a/src/wp-content/themes/twentyseventeen/searchform.php b/src/wp-content/themes/twentyseventeen/searchform.php index 7dd83b579ed88..0d494717074f7 100644 --- a/src/wp-content/themes/twentyseventeen/searchform.php +++ b/src/wp-content/themes/twentyseventeen/searchform.php @@ -8,11 +8,17 @@ * @version 1.0 */ +/** @var array{ wrap_in_search: bool, aria_label: string } $args */ + ?> - + diff --git a/src/wp-content/themes/twentysixteen/searchform.php b/src/wp-content/themes/twentysixteen/searchform.php index 1f770ac8bffbc..1b7215171a9b9 100644 --- a/src/wp-content/themes/twentysixteen/searchform.php +++ b/src/wp-content/themes/twentysixteen/searchform.php @@ -7,9 +7,15 @@ * @since Twenty Sixteen 1.0 */ +/** @var array{ wrap_in_search: bool, aria_label: string } $args */ + ?> - + diff --git a/src/wp-content/themes/twentytwenty/searchform.php b/src/wp-content/themes/twentytwenty/searchform.php index 331a366198f00..c3811f8cd8d12 100644 --- a/src/wp-content/themes/twentytwenty/searchform.php +++ b/src/wp-content/themes/twentytwenty/searchform.php @@ -11,6 +11,8 @@ * @since Twenty Twenty 1.0 */ +/** @var array{ wrap_in_search: bool, aria_label: string } $args */ + /* * Generate a unique ID for each form and a string containing an aria-label * if one was passed to get_search_form() in the args array. @@ -22,8 +24,13 @@ if ( empty( $twentytwenty_aria_label ) && ! empty( $args['label'] ) ) { $twentytwenty_aria_label = 'aria-label="' . esc_attr( $args['label'] ) . '"'; } + +$twentytwenty_wrap_in_search = ! empty( $args['wrap_in_search'] ); ?> -
method="get" class="search-form" action=""> + +> + +method="get" class="search-form" action="">