PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.10
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.10
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/FrmFormState.php +3 -3 6.36.10 View file →
@@ -13,9 +13,9 @@
13 13 */
14 14 class FrmFormState {
15 15
16 16 /**
17 - * @var FrmFormState $instance
17 + * @var FrmFormState
18 18 */
19 19 private static $instance;
20 20
21 21 /**
@@ -45,9 +45,9 @@
45 45 /**
46 46 * @return bool true if just initialized.
47 47 */
48 48 private static function maybe_initialize() {
49 - if ( ! isset( self::$instance ) ) {
49 + if ( empty( self::$instance ) ) {
50 50 self::$instance = new self();
51 51 return true;
52 52 }
53 53 return false;
@@ -218,9 +218,9 @@
218 218 }
219 219
220 220 // We don't have a secret, so let's generate one.
221 221 $secret_key = is_callable( 'sodium_crypto_secretbox_keygen' ) ? sodium_crypto_secretbox_keygen() : wp_generate_password( 32, true, true );
222 - add_option( 'frm_form_state_key', base64_encode( $secret_key ) ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
222 + update_option( 'frm_form_state_key', base64_encode( $secret_key ), 'no' ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
223 223
224 224 return $secret_key;
225 225 }
226 226 }