Skip to content

Commit

Permalink
more consistency in responses
Browse files Browse the repository at this point in the history
  • Loading branch information
omarabid committed Mar 13, 2015
1 parent 47e4ffb commit db83837
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion update.php
Expand Up @@ -37,7 +37,7 @@
$obj->download_link = $obj->package;
echo serialize($obj);
case 'license':
echo 'false';
echo serialize( $obj );
break;
}

Expand Down
2 changes: 1 addition & 1 deletion wp_autoupdate.php
Expand Up @@ -165,7 +165,7 @@ public function getRemote_license()
);
$request = wp_remote_post( $this->update_path, $params );
if ( !is_wp_error( $request ) || wp_remote_retrieve_response_code( $request ) === 200 ) {
return $request['body'];
return unserialize( $request['body'] );
}
return false;
}
Expand Down

0 comments on commit db83837

Please sign in to comment.