| @@ -28,13 +28,9 @@ | ||
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | public function prepareOutput( $output ) |
| 31 | 31 | { |
| 32 | - // $hidden = wp_nonce_field( $this->actionName, $this->tokenName, TRUE, FALSE ); | |
| 33 | - | |
| 34 | - $nonceVal = wp_create_nonce( 'shiftcontroller' ); | |
| 35 | - $hidden = '<input type="hidden" name="hc_nonce" value="' . $nonceVal . '"/>'; | |
| 36 | - | |
| 32 | + $hidden = wp_nonce_field( $this->actionName, $this->tokenName, TRUE, FALSE ); | |
| 37 | 33 | $output = str_replace('</form>', $hidden . '</form>', $output); |
| 38 | 34 | return $output; |
| 39 | 35 | } |
| 40 | 36 | } |