Skip to content

Commit 9ac0295

Browse files
swissspidyCopilot
andauthored
Update src/Core_Command.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 391bce4 commit 9ac0295

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Core_Command.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1559,9 +1559,11 @@ public function capture_version_check_error( $response, $context, $_class, $_arg
15591559
return;
15601560
}
15611561

1562-
// Store the error if the response is a WP_Error
1562+
// Store the error if the response is a WP_Error; clear it otherwise.
15631563
if ( is_wp_error( $response ) ) {
15641564
$this->version_check_error = $response;
1565+
} else {
1566+
$this->version_check_error = null;
15651567
}
15661568
}
15671569

0 commit comments

Comments
 (0)