PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.22
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.22
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/FrmSettings.php +4 -5 6.256.22 View file →
@@ -177,9 +177,8 @@
177 177 'wp_spam_check' => 0,
178 178 'denylist_check' => 0,
179 179 'disallowed_words' => '',
180 180 'allowed_words' => '',
181 - 'email_style' => 'classic',
182 181 );
183 182 }
184 183
185 184 /**
@@ -302,11 +301,11 @@
302 301
303 302 if ( ! isset( $this->pubkey ) ) {
304 303 // Get the options from the database.
305 304 $recaptcha_opt = is_multisite() ? get_site_option( 'recaptcha' ) : get_option( 'recaptcha' );
306 - $this->pubkey = $recaptcha_opt['pubkey'] ?? '';
307 - $privkey = $recaptcha_opt['privkey'] ?? $privkey;
308 - $re_lang = $recaptcha_opt['re_lang'] ?? $re_lang;
305 + $this->pubkey = isset( $recaptcha_opt['pubkey'] ) ? $recaptcha_opt['pubkey'] : '';
306 + $privkey = isset( $recaptcha_opt['privkey'] ) ? $recaptcha_opt['privkey'] : $privkey;
307 + $re_lang = isset( $recaptcha_opt['re_lang'] ) ? $recaptcha_opt['re_lang'] : $re_lang;
309 308 }
310 309
311 310 if ( empty( $this->re_msg ) ) {
312 311 $this->re_msg = __( 'The CAPTCHA was not entered correctly', 'formidable' );
@@ -445,9 +444,9 @@
445 444
446 445 $frm_roles = FrmAppHelper::frm_capabilities();
447 446 $roles = get_editable_roles();
448 447 foreach ( $frm_roles as $frm_role => $frm_role_description ) {
449 - $this->$frm_role = (array) ( $params[ $frm_role ] ?? 'administrator' );
448 + $this->$frm_role = (array) ( isset( $params[ $frm_role ] ) ? $params[ $frm_role ] : 'administrator' );
450 449
451 450 // Make sure administrators always have permissions
452 451 if ( ! in_array( 'administrator', $this->$frm_role, true ) ) {
453 452 array_push( $this->$frm_role, 'administrator' );