Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 795f696

Browse files
committed
Rename usages of className to class in ProductSearch.php (#4740)
1 parent 4d31625 commit 795f696

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/BlockTypes/ProductSearch.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,21 +97,21 @@ protected function render( $attributes, $content ) {
9797
);
9898

9999
$input_markup = sprintf(
100-
'<input type="search" id="%s" className="wc-block-product-search__field" placeholder="%s" name="s" />',
100+
'<input type="search" id="%s" class="wc-block-product-search__field" placeholder="%s" name="s" />',
101101
esc_attr( $input_id ),
102102
esc_attr( $attributes['placeholder'] )
103103
);
104104
$button_markup = sprintf(
105-
'<button type="submit" className="wc-block-product-search__button" aria-label="%s">
106-
<svg aria-hidden="true" role="img" focusable="false" className="dashicon dashicons-arrow-right-alt2" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
105+
'<button type="submit" class="wc-block-product-search__button" aria-label="%s">
106+
<svg aria-hidden="true" role="img" focusable="false" class="dashicon dashicons-arrow-right-alt2" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
107107
<path d="M6 15l5-5-5-5 1-2 7 7-7 7z" />
108108
</svg>
109109
</button>',
110110
esc_attr__( 'Search', 'woo-gutenberg-products-block' )
111111
);
112112

113113
$field_markup = '
114-
<div className="wc-block-product-search__fields">
114+
<div class="wc-block-product-search__fields">
115115
' . $input_markup . $button_markup . '
116116
<input type="hidden" name="post_type" value="product" />
117117
</div>

0 commit comments

Comments
 (0)