public_html/wp-content/plugins/wp-statistics/includes/functions/functions.php
// This function gets the current page URI.
This function gets the current page URI.
This function gets the current page URI .
function wp_statistics_get_uri() {
		$site_uri = parse_url( site_url(), PHP_URL_PATH );
		$page_uri = $_SERVER["REQUEST_URI"];
		$page_uri = substr( $page_uri, strlen( $site_uri ) );
		if( $page_uri == '' ) { $page_uri = '/'; }
		return $page_uri;
	}
function wp_statistics_get_uri ( ) { $ site_uri = parse_url ( site_url ( ) , PHP_URL_PATH ) ; $ page_uri = $ _SERVER [ " REQUEST_URI " ] ; $ page_uri = substr ( $ page_uri , strlen ( $ site_uri ) ) ; if ( $ page_uri == '' ) { $ page_uri = '/' ; } return $ page_uri ; }
This function gets the current page URI.
This function gets the current page URI .
// Get the site's path from the URL. // Get the current page URI. // Strip the site's path from the URI. // If we're at the root (aka the URI is blank), let's make sure to indicate it.