PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.21
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.21
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/fields/FrmFieldHTML.php +4 -9 6.346.21 View file →
@@ -9,9 +9,8 @@
9 9 class FrmFieldHTML extends FrmFieldType {
10 10
11 11 /**
12 12 * @var string
13 - *
14 13 * @since 3.0
15 14 */
16 15 protected $type = 'html';
17 16
@@ -16,9 +15,8 @@
16 15 protected $type = 'html';
17 16
18 17 /**
19 18 * @var bool
20 - *
21 19 * @since 3.0
22 20 */
23 21 protected $has_input = false;
24 22
@@ -44,20 +42,18 @@
44 42 }
45 43
46 44 /**
47 45 * @since 3.0
48 - *
49 - * @param array $args
50 - * @param string $html
51 - *
52 - * @return string
53 46 */
54 47 protected function after_replace_html_shortcodes( $args, $html ) {
55 48 FrmFieldsHelper::run_wpautop( array( 'wpautop' => true ), $html );
56 49 $pre_filter = $html;
57 50 $html = apply_filters( 'frm_get_default_value', $html, (object) $this->field, false );
51 + if ( $pre_filter === $html ) {
52 + $html = do_shortcode( $html );
53 + }
58 54
59 - return $pre_filter === $html ? do_shortcode( $html ) : $html;
55 + return $html;
60 56 }
61 57
62 58 /**
63 59 * @return string
@@ -80,9 +76,8 @@
80 76 *
81 77 * @since 6.8.3
82 78 *
83 79 * @param array $atts
84 - *
85 80 * @return bool
86 81 */
87 82 protected function should_strip_most_html_before_preparing_display_value( $atts ) {
88 83 return false;