/*
* 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,
//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