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:
Mike Jolley 2018-05-25 11:29:07 +01:00 committed by GitHub
commit 717fd61a16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -2699,11 +2699,11 @@ if ( ! function_exists( 'get_product_search_form' ) ) {
$form = apply_filters( 'get_product_search_form', ob_get_clean() );
if ( $echo ) {
echo $form; // WPCS: XSS ok.
} else {
if ( ! $echo ) {
return $form;
}
echo $form; // WPCS: XSS ok.
}
}