From a3725a66afaa823221a2c27a34343d2e1127aa67 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Mon, 26 Jan 2015 15:07:49 -0800 Subject: [PATCH] CSSMin: Optimise isLocalUrl by moving fast comparison forward Change-Id: I668e248bd51fb75dfeeef3b74973f517a188c7ba --- includes/libs/CSSMin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/libs/CSSMin.php b/includes/libs/CSSMin.php index bea6cedb82..ffe26a96c1 100644 --- a/includes/libs/CSSMin.php +++ b/includes/libs/CSSMin.php @@ -359,7 +359,7 @@ class CSSMin { * @return bool */ public static function isLocalUrl( $maybeUrl ) { - if ( !self::isRemoteUrl( $maybeUrl ) && $maybeUrl !== '' && $maybeUrl[0] === '/' ) { + if ( $maybeUrl !== '' && $maybeUrl[0] === '/' && !self::isRemoteUrl( $maybeUrl ) ) { return true; } return false; -- 2.20.1