From 115a90a02b85b0aeaab36352d0fcedf23f71a98d Mon Sep 17 00:00:00 2001 From: Kirtan Gajjar <8456197+kirtangajjar@users.noreply.github.com> Date: Sun, 9 Jun 2024 04:19:35 +0530 Subject: [PATCH] Add check for internal connection --- includes/pull-ui.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/pull-ui.php b/includes/pull-ui.php index f56c02a73..4b62b6c53 100644 --- a/includes/pull-ui.php +++ b/includes/pull-ui.php @@ -576,8 +576,10 @@ function output_pull_errors() { if ( is_a( $connection_now, '\Distributor\ExternalConnection' ) ) { $error_key = "external_{$connection_now->id}"; - } else { + } elseif ( is_a( $connection_now, '\Distributor\InternalConnections\NetworkSiteConnection' ) ) { $error_key = "internal_{$connection_now->site->blog_id}"; + } else { + return; } $pull_errors = get_transient( 'dt_connection_pull_errors_' . $error_key );