- Restricts router access to explicitly defined endpoint actions
This commit is contained in:
@ -8,6 +8,7 @@ if(!defined('ABSPATH')) exit;
|
||||
class Queue {
|
||||
const ENDPOINT = 'queue';
|
||||
const ACTION_RUN = 'run';
|
||||
public $allowed_actions = array(self::ACTION_RUN);
|
||||
|
||||
function run($data) {
|
||||
$queue = new Daemon($data);
|
||||
|
Reference in New Issue
Block a user