| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/prosvasi/wp-content/plugins/wp-statistics/src/Service/Database/ |
Upload File : |
<?php
namespace WP_Statistics\Service\Database;
/**
* Helper methods that are used by the database service.
*
* @package WP_Statistics\Service\Database
*/
class DatabaseHelper
{
/**
* Get the absolute URL of the current admin (Dashboard) screen.
*
* @return string Absolute admin URL for the current screen or empty string.
*/
public static function getCurrentAdminUrl()
{
global $pagenow;
$base = ! empty($pagenow) ? self_admin_url($pagenow) : self_admin_url('index.php');
return rawurlencode(add_query_arg(wp_unslash($_GET), $base));
}
}