Файловый менеджер - Редактировать - /var/www/xthruster/html/wp-content/plugins/wpml-string-translation/classes/Troubleshooting/RequestHandle.php
Назад
<?php namespace WPML\ST\Troubleshooting; class RequestHandle implements \IWPML_Action { /** @var string $action */ private $action; /** @var callable $callback */ private $callback; public function __construct( $action, $callback ) { $this->action = $action; $this->callback = $callback; } public function add_hooks() { add_action( 'wp_ajax_' . $this->action, [ $this, 'handle' ] ); } public function handle() { if ( wp_verify_nonce( $_POST['nonce'], BackendHooks::NONCE_KEY ) ) { call_user_func( $this->callback ); wp_send_json_success(); } else { wp_send_json_error( 'Invalid nonce value', 500 ); } } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка