Remove "sizeof"

Per new Woo template files.
This commit is contained in:
Unknown 2018-03-22 14:06:19 -06:00 committed by zachary
parent 5726d56bcf
commit cceb400c5f
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ if ( ! defined( 'ABSPATH' ) ) {
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php if ( sizeof( $order->get_items() ) > 0 ) : ?> <?php if ( count( $order->get_items() ) > 0 ) : ?>
<?php foreach ( $order->get_items() as $item_id => $item ) : ?> <?php foreach ( $order->get_items() as $item_id => $item ) : ?>
<?php <?php
if ( ! apply_filters( 'woocommerce_order_item_visible', true, $item ) ) { if ( ! apply_filters( 'woocommerce_order_item_visible', true, $item ) ) {