| Server IP : 91.108.98.45 / Your IP :
216.73.216.151 [
Web Server : LiteSpeed System : Linux nl-srv-web1124.main-hosting.eu 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64 User : u964240598 ( 964240598) PHP Version : 8.4.19 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/u964240598/public_html/jobs/wp-content/plugins/hostinger/includes/Admin/ |
Upload File : |
<?php
namespace Hostinger\Admin;
defined( 'ABSPATH' ) || exit;
class Ajax {
private const TWO_DAYS = 86400 * 2;
public const AJAX_METHOD_PREFIX = 'wp_ajax_hostinger_';
public const HIDE_PLUGIN_SPLIT_NOTICE = 'hts_plugin_split_notice_hidden';
public const AJAX_EVENTS = array(
'dismiss_plugin_split_notice',
);
public function __construct() {
add_action( 'admin_init', array( $this, 'define_ajax_events' ), 0 );
}
public function define_ajax_events(): void {
foreach ( self::AJAX_EVENTS as $event ) {
add_action( self::AJAX_METHOD_PREFIX . $event, array( $this, $event ) );
}
}
public function dismiss_plugin_split_notice(): void {
$nonce = isset( $_POST['nonce'] ) ? sanitize_text_field( $_POST['nonce'] ) : '';
// @codeCoverageIgnoreStart
if ( ! wp_verify_nonce( $nonce, 'hts_close_plugin_split' ) ) {
wp_send_json_error( 'Invalid nonce' );
}
// @codeCoverageIgnoreEnd
update_option( self::HIDE_PLUGIN_SPLIT_NOTICE, true );
}
}
Anon7 - 2022
AnonSec Team
