Skip to content

Commit

Permalink
add support for multiple pull errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mehul0810 committed Jun 26, 2024
1 parent 342cb0c commit 5332b6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/classes/PullListTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ class PullListTable extends \WP_List_Table {
/**
* Save error to determine if we can show the pull table
*
* @var bool
* @var array
*/
public $pull_error;
public $pull_error = [];

/**
* Initialize pull table
Expand Down Expand Up @@ -535,7 +535,7 @@ public function prepare_items() {
$remote_get = $connection_now->remote_get( $remote_get_args );

if ( is_wp_error( $remote_get ) ) {
$this->pull_error = $remote_get->get_error_messages();
$this->pull_error[] = $remote_get->get_error_messages();
continue;
}

Expand Down

0 comments on commit 5332b6c

Please sign in to comment.