From 5332b6c0da83ebcf9be771364030939e0685879e Mon Sep 17 00:00:00 2001 From: Mehul Gohil Date: Thu, 27 Jun 2024 00:34:34 +0530 Subject: [PATCH] add support for multiple pull errors --- includes/classes/PullListTable.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/classes/PullListTable.php b/includes/classes/PullListTable.php index 606710887..e14fc872a 100644 --- a/includes/classes/PullListTable.php +++ b/includes/classes/PullListTable.php @@ -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 @@ -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; }