| @@ -36,10 +36,14 @@ | ||
| 36 | 36 | ); |
| 37 | 37 | |
| 38 | 38 | if($this->form->run($rules)) |
| 39 | 39 | { |
| 40 | + | |
| 41 | + // Check _wpnonce | |
| 42 | + check_admin_referer( 'wdk-searchform-edit_'.$id, '_wpnonce' ); | |
| 43 | + | |
| 40 | 44 | // Save procedure for basic data |
| 41 | - $data = $this->searchform_m->prepare_data($this->input->post(), $rules); | |
| 45 | + $data = $this->searchform_m->prepare_data(wdk_get_post(), $rules); | |
| 42 | 46 | |
| 43 | 47 | // Save standard wp post |
| 44 | 48 | |
| 45 | 49 | if($this->searchform_m->total() == 0) |