Skip to content

Commit

Permalink
Merge pull request #1225 from 10up/fix/internalcheck
Browse files Browse the repository at this point in the history
Add check for internal connection
  • Loading branch information
peterwilsoncc authored Jun 11, 2024
2 parents e0af360 + 115a90a commit 75c0bf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/pull-ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 75c0bf3

Please sign in to comment.