From 1934d3e448b5c804fcde235ea5052412fda64493 Mon Sep 17 00:00:00 2001 From: Lee Willis Date: Thu, 20 Jul 2017 14:23:35 +0100 Subject: [PATCH] Allow GITHUB_API_LEVEL to be predefined in wp-config.php --- github-api.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/github-api.php b/github-api.php index 92e894b..ba77898 100644 --- a/github-api.php +++ b/github-api.php @@ -2,17 +2,19 @@ -// 0 - none +// 0 - none. define( 'GEDEBUG_NONE', 0 ); -// 1 - call logging only +// 1 - call logging only. define( 'GEDEBUG_CALL', 1 ); -// 2 - calls, and responses +// 2 - calls, and responses. define( 'GEDEBUG_RESP', 2 ); -// Selected debug level -define( 'GITHUB_API_LEVEL', GEDEBUG_NONE ); +// Selected debug level. +if ( ! defined( 'GITHUB_API_LEVEL' ) ) { + define( 'GITHUB_API_LEVEL', GEDEBUG_NONE ); +} /**