| @@ -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 | |
| @@ -24,9 +22,9 @@ | ||
| 24 | 22 | |
| 25 | 23 | /** |
| 26 | 24 | * @since 4.0 |
| 27 | 25 | * |
| 28 | - * @param array $args Includes 'field', 'display', and 'values'. | |
| 26 | + * @param array $args - Includes 'field', 'display', and 'values' | |
| 29 | 27 | * |
| 30 | 28 | * @return void |
| 31 | 29 | */ |
| 32 | 30 | public function show_primary_options( $args ) { |
| @@ -44,19 +42,13 @@ | ||
| 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 ); |
| 58 | - | |
| 59 | 51 | if ( $pre_filter === $html ) { |
| 60 | 52 | $html = do_shortcode( $html ); |
| 61 | 53 | } |
| 62 | 54 | |
| @@ -74,21 +66,6 @@ | ||
| 74 | 66 | * @return string |
| 75 | 67 | */ |
| 76 | 68 | protected function include_form_builder_file() { |
| 77 | 69 | return FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/field-html.php'; |
| 78 | - } | |
| 79 | - | |
| 80 | - /** | |
| 81 | - * Overwrite FrmFieldType::should_strip_most_html_before_preparing_display_value. | |
| 82 | - * An HTML field is not populated from user input. | |
| 83 | - * It does not need to be passed through FrmAppHelper::strip_most_html. | |
| 84 | - * | |
| 85 | - * @since 6.8.3 | |
| 86 | - * | |
| 87 | - * @param array $atts | |
| 88 | - * | |
| 89 | - * @return bool | |
| 90 | - */ | |
| 91 | - protected function should_strip_most_html_before_preparing_display_value( $atts ) { | |
| 92 | - return false; | |
| 93 | 70 | } |
| 94 | 71 | } |