From f449e96cc47deb3a95fc3bcb675e5349b108a0ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E8=90=BD?= Date: Sun, 23 Feb 2020 11:00:25 +0800 Subject: [PATCH] fix --- functions/Common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/Common.php b/functions/Common.php index 7c5a8ec..5be2f25 100644 --- a/functions/Common.php +++ b/functions/Common.php @@ -213,7 +213,7 @@ function gdk_is_mobile() { //判断是否是登陆页面 function is_login() { - return in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php')); + return in_array($GLOBALS['pagenow'], ['wp-login.php', 'wp-register.php']); } //判断字符串内是否有指定字符串