public function is_wp_login()
    {
        $abs_path = \str_replace(['\\', '/'], DIRECTORY_SEPARATOR, ABSPATH);

        $files = \get_included_files();

        if (\in_array($abs_path . 'wp-login.php', $files) || \in_array($abs_path . 'wp-register.php', $files)) {
            return true;
        }

        if (isset($_GLOBALS['pagenow']) && $GLOBALS['pagenow'] === 'wp-login.php') {
            return true;
        }

        if (isset($_SERVER['PHP_SELF']) && $_SERVER['PHP_SELF'] == '/wp-login.php') {
            return true;
        }

        return false;
    }
public function is_wp_login()
    {
        $abs_path = \str_replace(['\\', '/'], DIRECTORY_SEPARATOR, ABSPATH);

        $files = \get_included_files();

        if (\in_array($abs_path . 'wp-login.php', $files) || \in_array($abs_path . 'wp-register.php', $files)) {
            return true;
        }

        if (isset($_GLOBALS['pagenow']) && $GLOBALS['pagenow'] === 'wp-login.php') {
            return true;
        }

        if (isset($_SERVER['PHP_SELF']) && $_SERVER['PHP_SELF'] == '/wp-login.php') {
            return true;
        }

        return false;
    }
public function is_wp_login ( ) { $ abs_path = \ str_replace ( [ '\\' , '/' ] , DIRECTORY_SEPARATOR , ABSPATH ) ; $ files = \ get_included_files ( ) ; if ( \ in_array ( $ abs_path . 'wp-login.php' , $ files ) || \ in_array ( $ abs_path . 'wp-register.php' , $ files ) ) { return true ; } if ( isset ( $ _GLOBALS [ 'pagenow' ] ) && $ GLOBALS [ 'pagenow' ] === 'wp-login.php' ) { return true ; } if ( isset ( $ _SERVER [ 'PHP_SELF' ] ) && $ _SERVER [ 'PHP_SELF' ] == '/wp-login.php' ) { return true ; } return false ; }
Detect whether the current request is to the login page.

@return bool
Detect whether the current request is to the login page .