From 6fc4b65935183cc9daff478aa4e7cb630282a506 Mon Sep 17 00:00:00 2001 From: Adam Anderly Date: Mon, 9 Feb 2015 09:42:19 -0600 Subject: [PATCH] Backout of change to use WC_Logger (Fixes #10) --- README.md | 3 +++ classes/class-ss-wc-integration-mailchimp.php | 7 +++---- readme.txt | 5 ++++- woocommerce-mailchimp.php | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 48654f2..e279d79 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,9 @@ If you need help, have problems, want to leave feedback or want to provide const ### Changelog +#### 1.3.6 +* Backout of change to use WC_Logger due to fatal error + #### 1.3.5 * Fix for undefined variable list and array_merge issue. * Change to use WC_Logger instead of error_log diff --git a/classes/class-ss-wc-integration-mailchimp.php b/classes/class-ss-wc-integration-mailchimp.php index be01b6a..1af0a80 100644 --- a/classes/class-ss-wc-integration-mailchimp.php +++ b/classes/class-ss-wc-integration-mailchimp.php @@ -9,7 +9,7 @@ * * @class SS_WC_Integration_MailChimp * @extends WC_Integration - * @version 1.3.5 + * @version 1.3.6 * @package WooCommerce MailChimp * @author Saint Systems */ @@ -575,13 +575,12 @@ function maybe_save_checkout_fields( $order_id ) { */ static function log( $message ) { if ( WP_DEBUG === true ) { - $logger = new WC_Logger(); if ( is_array( $message ) || is_object( $message ) ) { - $logger->add( $this->id, print_r( $message, true ) ); + error_log( print_r( $message, true ) ); } else { - $logger->add( $this->id, $message ); + error_log( $message ); } } } diff --git a/readme.txt b/readme.txt index c0b46cf..b35065b 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: anderly, saintsystems Tags: woocommerce, mailchimp Requires at least: 3.5.1 Tested up to: 4.1 -Stable tag: 1.3.5 +Stable tag: 1.3.6 License: GPLv3 Simple and flexible MailChimp integration for WooCommerce. @@ -78,6 +78,9 @@ If you need help, have problems, want to leave feedback or want to provide const == Changelog == += 1.3.6 = +* Backout of change to use WC_Logger due to fatal error + = 1.3.5 = * Fix for undefined variable list and array_merge issue. * Change to use WC_Logger instead of error_log diff --git a/woocommerce-mailchimp.php b/woocommerce-mailchimp.php index 20eedcc..6a8440a 100644 --- a/woocommerce-mailchimp.php +++ b/woocommerce-mailchimp.php @@ -5,7 +5,7 @@ * Description: WooCommerce MailChimp provides simple MailChimp integration for WooCommerce. * Author: Adam Anderly * Author URI: http://anderly.com - * Version: 1.3.5 + * Version: 1.3.6 * Text Domain: ss_wc_mailchimp * Domain Path: languages *