Skip to content

Commit 8408944

Browse files
authored
Update src/Core_Command.php
1 parent 6c3bce7 commit 8408944

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Core_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,12 +1205,12 @@ public function update( $args, $assoc_args ) {
12051205
if ( $locale_arg ) {
12061206
$new_package = $this->get_download_url( $update->version, $locale_arg );
12071207
$update = (object) [
1208-
'response' => $update->response,
1208+
'response' => $update->response ?? 'upgrade',
12091209
'current' => $update->version,
12101210
'download' => $new_package,
12111211
'packages' => (object) [
12121212
'partial' => null,
1213-
'new_bundled' => $update->packages->new_bundled,
1213+
'new_bundled' => $update->packages->new_bundled ?? null,
12141214
'no_content' => null,
12151215
'full' => $new_package,
12161216
],

0 commit comments

Comments
 (0)