Changed sizeof to count

This commit is contained in:
Sandeep Rajakrishnan 2021-09-13 14:55:32 +05:30 committed by GitHub
parent 89c9dadd9b
commit c144476128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -62,13 +62,13 @@ $current_section_name = __( 'Browse Categories', 'woocommerce' );
<div class="wrap"> <div class="wrap">
<div class="marketplace-content-wrapper"> <div class="marketplace-content-wrapper">
<?php if ( sizeof($addons)==0 ) : ?> <?php if ( count( $addons ) == 0 ) : ?>
<h1 class="search-form-title"> <h1 class="search-form-title">
<?php // translators: search keyword. ?> <?php // translators: search keyword. ?>
<?php esc_html_e( 'Sorry, could not find anything. Try searching again using a different term.', 'woocommerce' ); ?></p> <?php esc_html_e( 'Sorry, could not find anything. Try searching again using a different term.', 'woocommerce' ); ?></p>
</h1> </h1>
<?php endif; ?> <?php endif; ?>
<?php if ( ! empty( $search ) && sizeof($addons)>0 ) : ?> <?php if ( ! empty( $search ) && count( $addons ) > 0 ) : ?>
<h1 class="search-form-title"> <h1 class="search-form-title">
<?php // translators: search keyword. ?> <?php // translators: search keyword. ?>
<?php printf( esc_html__( 'Search results for "%s"', 'woocommerce' ), esc_html( sanitize_text_field( wp_unslash( $search ) ) ) ); ?> <?php printf( esc_html__( 'Search results for "%s"', 'woocommerce' ), esc_html( sanitize_text_field( wp_unslash( $search ) ) ) ); ?>