From 3dfc03f4d4dab4119522f2c7d3bb3c57eda912cb Mon Sep 17 00:00:00 2001 From: miya0001 Date: Wed, 12 Aug 2015 16:34:00 +0900 Subject: [PATCH] run on only wp_debug --- .travis.yml | 1 + lib/VCCW_MailCatcher.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index c828d01..c867adf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ notifications: php: - 5.3 - 5.5 + - 5.6 env: - WP_VERSION=latest WP_MULTISITE=0 diff --git a/lib/VCCW_MailCatcher.php b/lib/VCCW_MailCatcher.php index 12d9197..02049db 100644 --- a/lib/VCCW_MailCatcher.php +++ b/lib/VCCW_MailCatcher.php @@ -20,6 +20,10 @@ class VCCW_MailCatcher */ public function __construct( array $config = array() ) { + if ( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG ) { + return; + } + // Setup our defaults $defaults = array( "host" => "127.0.0.1",