Plugin Updates
This commit is contained in:
@@ -146,8 +146,8 @@ class WC_Tax_Rate_Importer extends WP_Importer {
|
||||
if ( false !== $handle ) {
|
||||
|
||||
$header = fgetcsv( $handle, 0, $this->delimiter );
|
||||
|
||||
if ( 10 === count( $header ) ) {
|
||||
$count = is_countable( $header ) ? count( $header ) : 0;
|
||||
if ( 10 === $count ) {
|
||||
|
||||
$row = fgetcsv( $handle, 0, $this->delimiter );
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ( count( $errors ) ) {
|
||||
if ( is_array( $errors ) && count( $errors ) ) {
|
||||
foreach ( $errors as $error ) {
|
||||
if ( ! is_wp_error( $error ) ) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user