diff --git a/Makefile b/Makefile index e89b8cc3107db4c7f9df8eeaa273d5dba3646af8..94b042d68c265ee864b17794a7f62247a7e96077 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ BASE=ordernumbers PLATTFORM=woocommerce VENDOR=opentools -VERSION=1.3.7 +VERSION=1.3.7debug DIR = $(shell pwd) SVNDIR=wordpress-plugin-svn diff --git a/opentools-update-checker.php b/opentools-update-checker.php index e28bb38b6f4dd53fe2297598d5c18ebdda448c59..49f45ad0fa8e664a010c051c2f434af858edd72b 100644 --- a/opentools-update-checker.php +++ b/opentools-update-checker.php @@ -23,7 +23,7 @@ class OpenToolsPluginUpdateChecker extends PluginUpdateChecker_2_1 { public function __construct($metadataUrl, $pluginFile, $slug = '', $checkPeriod = 12, $optionName = '', $muPluginFile = '') { parent::__construct($metadataUrl, $pluginFile, $slug, $checkPeriod, $optionName, $muPluginFile); -// $this->debugMode = true; + $this->debugMode = TRUE; $this->installOTHooks(); } public function declareCredentials($credential_def) { @@ -250,6 +250,9 @@ class OpenToolsPluginUpdateChecker extends PluginUpdateChecker_2_1 { $success = ($status_code==200); } else { $message = __('Unable to access plugin download URL. Please check your credentials.'); + if ($this->debugMode) { + $message .= "<pre>updateinfo: ".print_r($updateinfo,1)."</pre>"; + } } return $success; } diff --git a/opentools-woocommerce-ordernumbers-advanced_v1.3.7debug.zip b/opentools-woocommerce-ordernumbers-advanced_v1.3.7debug.zip new file mode 100644 index 0000000000000000000000000000000000000000..1bf750f9c19f4319d20042dc51cda0a346e164dc Binary files /dev/null and b/opentools-woocommerce-ordernumbers-advanced_v1.3.7debug.zip differ diff --git a/opentools-woocommerce-ordernumbers-basic_v1.3.7debug.zip b/opentools-woocommerce-ordernumbers-basic_v1.3.7debug.zip new file mode 100644 index 0000000000000000000000000000000000000000..0aa808bb276c7b5fdde0e2a9a25a140e30a97037 Binary files /dev/null and b/opentools-woocommerce-ordernumbers-basic_v1.3.7debug.zip differ diff --git a/plugin-update-checker/plugin-update-checker.php b/plugin-update-checker/plugin-update-checker.php index 8a5c92f29099ba8ed01b82ed9ccd03351d5c6d6c..4971cc46c906ffd52348eba2bc1ec4551bae7619 100644 --- a/plugin-update-checker/plugin-update-checker.php +++ b/plugin-update-checker/plugin-update-checker.php @@ -221,7 +221,7 @@ class PluginUpdateChecker_2_1 { ); //Try to parse the response - $pluginInfo = null; + $pluginInfo = new stdClass(); if ( !is_wp_error($result) && isset($result['response']['code']) && ($result['response']['code'] == 200) && !empty($result['body']) ){ $pluginInfo = PluginInfo_2_1::fromJson($result['body'], $this->debugMode); $pluginInfo->filename = $this->pluginFile; @@ -236,6 +236,7 @@ class PluginUpdateChecker_2_1 { $message .= "wp_remote_get() returned an unexpected result."; } trigger_error($message, E_USER_WARNING); + $pluginInfo->response = $result; } $pluginInfo = apply_filters('puc_request_info_result-'.$this->slug, $pluginInfo, $result); diff --git a/woocommerce-advanced-ordernumbers.php b/woocommerce-advanced-ordernumbers.php index 8bfa2a4e3ea15e9774912c420b42c942332a8b27..23267efd2b1a487e7d50f4686443543f8a2e97ed 100644 --- a/woocommerce-advanced-ordernumbers.php +++ b/woocommerce-advanced-ordernumbers.php @@ -3,7 +3,7 @@ * Plugin Name: Woocommerce Advanced Ordernumbers * Plugin URI: http://open-tools.net/woocommerce/advanced-ordernumbers-for-woocommerce.html * Description: Lets the user freely configure the order numbers in WooCommerce. - * Version: 1.3.7 + * Version: 1.3.7debug * Author: Open Tools * Author URI: http://open-tools.net * Text Domain: woocommerce-advanced-ordernumbers diff --git a/woocommerce-basic-ordernumbers.php b/woocommerce-basic-ordernumbers.php index a4a34cf167125009001e85a43e4358d2cd378370..60eba04fe110791223cf9cfaefb85c477ad4530c 100644 --- a/woocommerce-basic-ordernumbers.php +++ b/woocommerce-basic-ordernumbers.php @@ -3,7 +3,7 @@ * Plugin Name: WooCommerce Basic Ordernumbers * Plugin URI: http://open-tools.net/woocommerce/advanced-ordernumbers-for-woocommerce.html * Description: Configure WooCommerce ordernumbers to have a running counter and arbitrary, fixed text (prefix / postfix). - * Version: 1.3.7 + * Version: 1.3.7debug * Author: Open Tools * Author URI: http://open-tools.net * Text Domain: woocommerce-advanced-ordernumbers