| @@ 2446-2449 (lines=4) @@ | ||
| 2443 | $cart = EE_Registry::instance()->SSN->cart(); |
|
| 2444 | $step = ! $cart instanceof EE_Cart ? 'ticket' : 'questions'; |
|
| 2445 | //if doing ajax then we need to verify the nonce |
|
| 2446 | if (defined('DOING_AJAX')) { |
|
| 2447 | $nonce = isset($this->_req_data[$this->_req_nonce]) |
|
| 2448 | ? sanitize_text_field($this->_req_data[$this->_req_nonce]) : ''; |
|
| 2449 | $this->_verify_nonce($nonce, $this->_req_nonce); |
|
| 2450 | } |
|
| 2451 | switch ($step) { |
|
| 2452 | case 'ticket' : |
|
| @@ 822-828 (lines=7) @@ | ||
| 819 | $nonce_check = isset($this->_route_config['require_nonce']) |
|
| 820 | ? $this->_route_config['require_nonce'] |
|
| 821 | : true; |
|
| 822 | if ($this->_req_action !== 'default' && $nonce_check) { |
|
| 823 | // set nonce from post data |
|
| 824 | $nonce = isset($this->_req_data[$this->_req_nonce]) |
|
| 825 | ? sanitize_text_field($this->_req_data[$this->_req_nonce]) |
|
| 826 | : ''; |
|
| 827 | $this->_verify_nonce($nonce, $this->_req_nonce); |
|
| 828 | } |
|
| 829 | //set the nav_tabs array but ONLY if this is UI_request |
|
| 830 | if ($this->_is_UI_request) { |
|
| 831 | $this->_set_nav_tabs(); |
|