HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/studis.kauko.lt/wp-content/plugins/wp-statistics/src/Service/Database/DatabaseHelper.php
<?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));
    }
}