From: Chuck Scott Date: Thu, 13 Apr 2017 17:25:16 +0000 (-0400) Subject: Temporarily reversing changes for plugin update checker. X-Git-Tag: v2.9.15^2~27 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=5e37fefc90f21e948c43e6a66e68391728a42c73;p=WP-Plugins%2Fglm-member-db.git Temporarily reversing changes for plugin update checker. --- diff --git a/index.php b/index.php index e5abbec5..4d31ce1a 100644 --- 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, diff --git a/lib/plugin-update-checker/plugin-update-checker.php b/lib/plugin-update-checker/plugin-update-checker.php index 5f00cbc4..a0569458 100644 --- a/lib/plugin-update-checker/plugin-update-checker.php +++ b/lib/plugin-update-checker/plugin-update-checker.php @@ -196,6 +196,7 @@ class PluginUpdateChecker_3_1 { //Try to parse the response $status = $this->validateApiResponse($result); $pluginInfo = null; +// *** CPS *** if ( !is_wp_error($status) && is_array($status)){ if ( !is_wp_error($status) && is_array($status)){ $pluginInfo = PluginInfo_3_1::fromJson($result['body']); if ( $pluginInfo !== null ) {