File "mod.php"

Full Path: /home/vantageo/public_html/cache/cache/cache/cache/cache/cache/.wp-cli/wp-content/plugins/woo-product-filter/modules/pages/mod.php
File size: 454 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
class PagesWpf extends ModuleWpf {
	/**
	 * Check if current page is Login page
	 */
	public function isLogin() {
		$name = empty($_SERVER['SCRIPT_NAME']) ? '' : sanitize_text_field($_SERVER['SCRIPT_NAME']);
		$url = empty($_SERVER['REQUEST_URI']) ? '' : sanitize_text_field($_SERVER['REQUEST_URI']);
		return ( basename($name) == 'wp-login.php' || strpos($url, '/login/') === 0 );	// Some plugins create login page by this address
	}
}