PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
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/FrmFieldCaptchaSettings.php +15 -0 6.25 → trunk View file →
@@ -194,8 +194,9 @@
194 194 * @since 6.8.4
195 195 *
196 196 * @param array $attributes
197 197 * @param array $field
198 + *
198 199 * @return array
199 200 */
200 201 public function add_front_end_element_attributes( $attributes, $field ) {
201 202 $attributes['data-size'] = $this->get_captcha_size( $field );
@@ -210,8 +211,9 @@
210 211 /**
211 212 * @since 6.8.4
212 213 *
213 214 * @param array $field
215 + *
214 216 * @return string Either 'normal' or 'compact'.
215 217 */
216 218 protected function get_captcha_size( $field ) {
217 219 return $field['captcha_size'] === 'default' ? 'normal' : $field['captcha_size'];
@@ -251,6 +253,19 @@
251 253 * @return bool
252 254 */
253 255 public function should_show_captcha_theme_auto_option() {
254 256 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 '';
255 270 }
256 271 }