true, ); } $this->_action = $args['action']; $this->_nonce_action = $args['nonce_action']; $this->_nonce_name = $args['nonce_name']; } /* (non-PHPdoc) * @see Ai1ec_Command::is_this_to_execute() */ public function is_this_to_execute() { $params = $this->get_parameters(); if ( false === $params ) { return false; } if ( $params['controller'] === $this->_controller && isset( $this->_action[$params['action']] ) ) { $pass = wp_verify_nonce( $_POST[$this->_nonce_name], $this->_nonce_action ); if ( ! $pass ) { wp_die( "Failed security check" ); } return true; } return false; } /* (non-PHPdoc) * @see Ai1ec_Command::set_render_strategy() */ public function set_render_strategy( Ai1ec_Request_Parser $request ) { $this->_render_strategy = $this->_registry->get( 'http.response.render.strategy.redirect' ); } }