mirror of
https://github.com/yunluo/gdk.git
synced 2024-05-11 02:36:45 +02:00
fix
This commit is contained in:
parent
a58053f675
commit
f449e96cc4
|
@ -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']);
|
||||
}
|
||||
|
||||
//判断字符串内是否有指定字符串
|
||||
|
|
Loading…
Reference in a new issue