| @@ 987-993 (lines=7) @@ | ||
| 984 | $nonce_check = isset($this->_route_config['require_nonce']) |
|
| 985 | ? $this->_route_config['require_nonce'] |
|
| 986 | : true; |
|
| 987 | if ($this->_req_action !== 'default' && $nonce_check) { |
|
| 988 | // set nonce from post data |
|
| 989 | $nonce = isset($this->_req_data[$this->_req_nonce]) |
|
| 990 | ? sanitize_text_field($this->_req_data[$this->_req_nonce]) |
|
| 991 | : ''; |
|
| 992 | $this->_verify_nonce($nonce, $this->_req_nonce); |
|
| 993 | } |
|
| 994 | //set the nav_tabs array but ONLY if this is UI_request |
|
| 995 | if ($this->_is_UI_request) { |
|
| 996 | $this->_set_nav_tabs(); |
|
| @@ 3068-3072 (lines=5) @@ | ||
| 3065 | $cart = EE_Registry::instance()->SSN->cart(); |
|
| 3066 | $step = ! $cart instanceof EE_Cart ? 'ticket' : 'questions'; |
|
| 3067 | //if doing ajax then we need to verify the nonce |
|
| 3068 | if (defined('DOING_AJAX')) { |
|
| 3069 | $nonce = isset($this->_req_data[$this->_req_nonce]) |
|
| 3070 | ? sanitize_text_field($this->_req_data[$this->_req_nonce]) : ''; |
|
| 3071 | $this->_verify_nonce($nonce, $this->_req_nonce); |
|
| 3072 | } |
|
| 3073 | switch ($step) { |
|
| 3074 | case 'ticket' : |
|
| 3075 | //process ticket selection |
|