ability to specify action for generateToken() method

This commit is contained in:
Jonathan Labreuille
2016-10-10 18:22:10 +02:00
parent 2787998d32
commit cc523a3c0b
5 changed files with 86 additions and 60 deletions

View File

@@ -161,7 +161,7 @@ class Widget extends \WP_Widget {
);
// generate security token
$data['token'] = Security::generateToken();
$data['token'] = Security::generateToken('subscribers_subscribe');
// render form
$renderer = new Renderer();