Skip to content

Commit

Permalink
Swap to HTTPS for market plugin update checks
Browse files Browse the repository at this point in the history
Now that we have healthchecks which can report on SSL connectivity issues we feel more confident swapping to HTTPS for update checks here.
Some hosts will still fail to obtain updates as they cannot connect via SSL, but at least these will be reported in the health check area now.
as suggested by user here: #212
  • Loading branch information
dtbaker committed Nov 10, 2020
1 parent 26a6dc0 commit f5efcc4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Binary file modified docs/dist/envato-market.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion inc/class-envato-market-github.php
Expand Up @@ -41,7 +41,7 @@ class Envato_Market_Github {
*
* @var string
*/
private static $api_url = 'http://envato.github.io/wp-envato-market/dist/update-check.json';
private static $api_url = 'https://envato.github.io/wp-envato-market/dist/update-check.json';

/**
* The Envato_Market_Items Instance
Expand Down
2 changes: 1 addition & 1 deletion languages/envato-market.pot
Expand Up @@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Envato Market 2.0.6\n"
"Report-Msgid-Bugs-To: Envato Support Team <support@envato.com>\n"
"POT-Creation-Date: 2020-11-10 05:11:18+00:00\n"
"POT-Creation-Date: 2020-11-10 05:13:37+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/inc/class-envato-market-github.php
Expand Up @@ -67,7 +67,7 @@ function test_api_check() {

$ref = new ReflectionProperty( 'Envato_Market_Github', 'api_url' );
$ref->setAccessible( true );
$ref->setValue( null, 'http://envato.github.io/wp-envato-market/dist/update-check.json' );
$ref->setValue( null, 'https://envato.github.io/wp-envato-market/dist/update-check.json' );
}

/**
Expand Down

0 comments on commit f5efcc4

Please sign in to comment.