Checking If sizeof($addons>0)
Checking sizeof($addons>0) along with !empty($search) to display search results if addons found
This commit is contained in:
parent
432f7caf0d
commit
89c9dadd9b
|
@ -68,7 +68,7 @@ $current_section_name = __( 'Browse Categories', 'woocommerce' );
|
|||
<?php esc_html_e( 'Sorry, could not find anything. Try searching again using a different term.', 'woocommerce' ); ?></p>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
<?php if ( ! empty( $search ) ) : ?>
|
||||
<?php if ( ! empty( $search ) && sizeof($addons)>0 ) : ?>
|
||||
<h1 class="search-form-title">
|
||||
<?php // translators: search keyword. ?>
|
||||
<?php printf( esc_html__( 'Search results for "%s"', 'woocommerce' ), esc_html( sanitize_text_field( wp_unslash( $search ) ) ) ); ?>
|
||||
|
|
Loading…
Reference in New Issue