From 24d24b0938b0670be1990a67844eef6aa39b0277 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Fri, 27 May 2016 13:40:44 +0800 Subject: [PATCH] Fix redux dev_mode for server loopback issues --- .../lib/ReduxFramework/ReduxCore/inc/class.redux_helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/core/lib/ReduxFramework/ReduxCore/inc/class.redux_helpers.php b/admin/core/lib/ReduxFramework/ReduxCore/inc/class.redux_helpers.php index 1d82f530..4a88fe71 100644 --- a/admin/core/lib/ReduxFramework/ReduxCore/inc/class.redux_helpers.php +++ b/admin/core/lib/ReduxFramework/ReduxCore/inc/class.redux_helpers.php @@ -66,7 +66,7 @@ } public static function isLocalHost() { - return ( $_SERVER['REMOTE_ADDR'] === '127.0.0.1' || $_SERVER['REMOTE_ADDR'] === 'localhost' ) ? 1 : 0; + return ( $_SERVER['REMOTE_ADDR'] === '127.0.0.1' || $_SERVER['REMOTE_ADDR'] === 'localhost' ) ? 0 : 0; } public static function isWpDebug() {