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