Merge pull request #20226 from rnaby/250518-104427-wc-template-functions-get_product_search_form
Removed get_product_search_form else
This commit is contained in:
commit
717fd61a16
|
@ -2699,11 +2699,11 @@ if ( ! function_exists( 'get_product_search_form' ) ) {
|
||||||
|
|
||||||
$form = apply_filters( 'get_product_search_form', ob_get_clean() );
|
$form = apply_filters( 'get_product_search_form', ob_get_clean() );
|
||||||
|
|
||||||
if ( $echo ) {
|
if ( ! $echo ) {
|
||||||
echo $form; // WPCS: XSS ok.
|
|
||||||
} else {
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo $form; // WPCS: XSS ok.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue