Skip to content

Commit

Permalink
run on only wp_debug
Browse files Browse the repository at this point in the history
  • Loading branch information
miya0001 committed Aug 12, 2015
1 parent 3fbbad3 commit 3dfc03f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ notifications:
php:
- 5.3
- 5.5
- 5.6

env:
- WP_VERSION=latest WP_MULTISITE=0
Expand Down
4 changes: 4 additions & 0 deletions lib/VCCW_MailCatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3dfc03f

Please # to comment.