Temporarily reversing changes for plugin update checker.
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 13 Apr 2017 17:25:16 +0000 (13:25 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 13 Apr 2017 17:25:16 +0000 (13:25 -0400)
index.php
lib/plugin-update-checker/plugin-update-checker.php

index e5abbec..4d31ce1 100644 (file)
--- a/index.php
+++ b/index.php
@@ -710,6 +710,7 @@ function glmCheckDatabase ()
 /*
  * Plugin Update Support - uses Gaslight Media update server
  */
+// Do not include this require statement in add-ons to this plugin. The update checker code should only be loaded here.
 require GLM_MEMBERS_PLUGIN_LIB_PATH.'/opentools-update-checker/opentools-update-checker.php';
 ${GLM_MEMBERS_PLUGIN_PREFIX."updateChecker"} = new OpenToolsPluginUpdateChecker(
     GLM_MEMBERS_PLUGIN_UPDATE_SERVER.'/?action=get_metadata&slug='.GLM_MEMBERS_PLUGIN_SLUG,
index 5f00cbc..a056945 100644 (file)
@@ -196,6 +196,7 @@ class PluginUpdateChecker_3_1 {
         //Try to parse the response\r
         $status = $this->validateApiResponse($result);\r
         $pluginInfo = null;\r
+// *** CPS ***        if ( !is_wp_error($status) && is_array($status)){\r
         if ( !is_wp_error($status) && is_array($status)){\r
             $pluginInfo = PluginInfo_3_1::fromJson($result['body']);\r
             if ( $pluginInfo !== null ) {\r