Skip to content

Commit

Permalink
Changed beans_updater to call the getbeans.io API using https (PR Get…
Browse files Browse the repository at this point in the history
  • Loading branch information
christophherr authored and hellofromtonya committed Jun 24, 2018
1 parent 1fcef5d commit c4f105b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/admin/updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function beans_updater( $value ) {

// Query the Beans REST API if the transient is expired.
if ( empty( $data ) ) {
$response = wp_remote_get( 'http://www.getbeans.io/rest-api/', array( 'sslverify' => false ) );
$response = wp_remote_get( 'https://www.getbeans.io/rest-api/' );

// Retrieve data from the body and decode json format.
$data = json_decode( wp_remote_retrieve_body( $response ), true );
Expand Down

0 comments on commit c4f105b

Please sign in to comment.