| @@ -173,9 +173,9 @@ | ||
| 173 | 173 | * @return string |
| 174 | 174 | */ |
| 175 | 175 | public function get_pubkey() { |
| 176 | 176 | $key = $this->get_key_for_pubkey(); |
| 177 | - return $this->frm_settings->$key ?? ''; | |
| 177 | + return isset( $this->frm_settings->$key ) ? $this->frm_settings->$key : ''; | |
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | 181 | * Check if the public key is not empty. |
| @@ -194,9 +194,8 @@ | ||
| 194 | 194 | * @since 6.8.4 |
| 195 | 195 | * |
| 196 | 196 | * @param array $attributes |
| 197 | 197 | * @param array $field |
| 198 | - * | |
| 199 | 198 | * @return array |
| 200 | 199 | */ |
| 201 | 200 | public function add_front_end_element_attributes( $attributes, $field ) { |
| 202 | 201 | $attributes['data-size'] = $this->get_captcha_size( $field ); |
| @@ -211,9 +210,8 @@ | ||
| 211 | 210 | /** |
| 212 | 211 | * @since 6.8.4 |
| 213 | 212 | * |
| 214 | 213 | * @param array $field |
| 215 | - * | |
| 216 | 214 | * @return string Either 'normal' or 'compact'. |
| 217 | 215 | */ |
| 218 | 216 | protected function get_captcha_size( $field ) { |
| 219 | 217 | return $field['captcha_size'] === 'default' ? 'normal' : $field['captcha_size']; |
| @@ -253,19 +251,6 @@ | ||
| 253 | 251 | * @return bool |
| 254 | 252 | */ |
| 255 | 253 | public function should_show_captcha_theme_auto_option() { |
| 256 | 254 | return false; |
| 257 | - } | |
| 258 | - | |
| 259 | - /** | |
| 260 | - * Default to no prefix. This is overwritten by child classes. | |
| 261 | - * | |
| 262 | - * @since 6.25.1 | |
| 263 | - * | |
| 264 | - * @param bool $allow_multiple | |
| 265 | - * | |
| 266 | - * @return string | |
| 267 | - */ | |
| 268 | - public function get_class_prefix( $allow_multiple ) { | |
| 269 | - return ''; | |
| 270 | 255 | } |
| 271 | 256 | } |