PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 3.6.6
JetFormBuilder — Dynamic Blocks Form Builder v3.6.6
3.6.6.1 3.6.6 3.6.5.4 3.6.5.3 3.6.5.2 3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 All 134 releases
← All changes | modules/onboarding/preview.php +3 -2 3.6.1 → 3.6.6 View file →
@@ -1,8 +1,9 @@
1 1 <?php
2 2
3 3 namespace JFB_Modules\Onboarding;
4 4
5 +use Jet_Form_Builder\Blocks\Block_Helper;
5 6 use Jet_Form_Builder\Blocks\Module;
6 7 use Jet_Form_Builder\Exceptions\Repository_Exception;
7 8 use JFB_Components\Wp_Nonce\Wp_Nonce;
8 9
@@ -7,15 +8,15 @@
7 8 use JFB_Components\Wp_Nonce\Wp_Nonce;
8 9
9 10 class Preview {
10 11
11 - const NONCE_FIELD = 'jfb_preview_nonce';
12 + const NONCE_FIELD = Block_Helper::PREVIEW_NONCE_FIELD;
12 13
13 14 private $nonce;
14 15
15 16 public function __construct() {
16 17 $this->nonce = new Wp_Nonce(
17 - 'jfb-preview-form',
18 + Block_Helper::PREVIEW_NONCE_ACTION,
18 19 array(
19 20 'name' => self::NONCE_FIELD,
20 21 )
21 22 );