Skip to content

Commit 06ba995

Browse files
committed
fix auto update php warning
1 parent 6baef3f commit 06ba995

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/AcfDuplicateRepeater/AutoUpdate/AutoUpdateGithub.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ public function get_remote_release_info() {
2121
if ( ! is_wp_error( $response ) ) {
2222
$release_info = json_decode( wp_remote_retrieve_body( $response ) );
2323

24+
if ( ! isset( $release_info->body ) ) {
25+
return false;
26+
}
27+
2428
return $this->extract_info( $release_info->body, array(
2529
'tested' => 'Tested up to',
2630
'requires_php' => 'Requires PHP',

0 commit comments

Comments
 (0)