| @@ -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 | ); |