PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.16
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.16
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/models/FrmValidate.php +1 -12 6.256.16 View file →
@@ -15,14 +15,8 @@
15 15 */
16 16 protected $form;
17 17
18 18 /**
19 - * @since 6.21
20 - * @var string
21 - */
22 - protected $option_type = 'form';
23 -
24 - /**
25 19 * @param int $form_id
26 20 */
27 21 public function __construct( $form_id ) {
28 22 $this->form_id = $form_id;
@@ -41,15 +35,10 @@
41 35 /**
42 36 * @return bool
43 37 */
44 38 protected function is_option_on() {
45 - $key = $this->get_option_key();
46 - if ( 'global' === $this->option_type ) {
47 - $frm_settings = FrmAppHelper::get_settings();
48 - return ! empty( $frm_settings->$key );
49 - }
50 -
51 39 $form = $this->get_form();
40 + $key = $this->get_option_key();
52 41 return ! empty( $form->options[ $key ] ) && 'off' !== $form->options[ $key ];
53 42 }
54 43
55 44 /**