Ensure background process class returns `data` as an array

Fixes #19524
This commit is contained in:
Mike Jolley 2018-03-29 11:09:41 +01:00
parent e718bdd11c
commit 51d634e29a
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ abstract class WC_Background_Process extends WP_Background_Process {
$batch = new stdClass();
$batch->key = $query->$column;
$batch->data = maybe_unserialize( $query->$value_column );
$batch->data = array_filter( (array) maybe_unserialize( $query->$value_column ) );
return $batch;
}