| Server IP : 46.29.167.47 / Your IP : 216.73.217.69 Web Server : nginx/1.24.0 System : Linux r1113901 6.8.0-117-generic #117-Ubuntu SMP PREEMPT_DYNAMIC Tue May 5 19:26:24 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/pokerguide.ru/wp-content/plugins/seo-by-rank-math/includes/helpers/ |
Upload File : |
<?php
/**
* The Security wrappers.
*
* @since 1.0.41.3
* @package RankMath
* @subpackage RankMath\Helpers
* @author Rank Math <support@rankmath.com>
*/
namespace RankMath\Helpers;
defined( 'ABSPATH' ) || exit;
/**
* Security class.
*/
class Security {
/**
* Add query arg
*
* @param mixed ...$args Array of arguments.
*
* @return string
*/
public static function add_query_arg( ...$args ) {
return esc_url( add_query_arg( ...$args ) );
}
/**
* Add query arg
*
* @param mixed ...$args Array of arguments.
*
* @return string
*/
public static function add_query_arg_raw( ...$args ) {
return esc_url_raw( add_query_arg( ...$args ) );
}
/**
* Removes an item or items from a query string.
*
* @param string|array $key (Required) Query key or keys to remove.
* @param string|boolean $query When false uses the current URL.
*
* @return string
*/
public static function remove_query_arg( $key, $query = false ) {
return esc_url( remove_query_arg( $key, $query ) );
}
/**
* Removes an item or items from a query string.
*
* @param string|array $key (Required) Query key or keys to remove.
* @param string|boolean $query When false uses the current URL.
*
* @return string
*/
public static function remove_query_arg_raw( $key, $query = false ) {
return esc_url_raw( remove_query_arg( $key, $query ) );
}
}