Ensure background process class returns `data` as an array
Fixes #19524
This commit is contained in:
parent
e718bdd11c
commit
51d634e29a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue