| @@ -115,12 +115,8 @@ | ||
| 115 | 115 | } |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | public static function save_fields( $options, $data = null ) { |
| 119 | - if ( is_null( $data ) ) { | |
| 120 | - $data = LP_Helper::sanitize_params_submitted( $_POST, 'html' ); | |
| 121 | - } | |
| 122 | - | |
| 123 | 119 | if ( empty( $data ) ) { |
| 124 | 120 | return false; |
| 125 | 121 | } |
| 126 | 122 | |
| @@ -269,9 +265,9 @@ | ||
| 269 | 265 | } |
| 270 | 266 | |
| 271 | 267 | if ( $description && in_array( $value['type'], array( 'textarea', 'radio' ), true ) ) { |
| 272 | 268 | $description = '<p style="margin-top:0">' . wp_kses_post( $description ) . '</p>'; |
| 273 | - } elseif ( $description && in_array( $value['type'], array( 'checkbox' ), true ) ) { | |
| 269 | + } elseif ( $description && in_array( $value['type'], array( 'checkbox', 'yes-no' ), true ) ) { | |
| 274 | 270 | $description = wp_kses_post( $description ); |
| 275 | 271 | } elseif ( $description ) { |
| 276 | 272 | $description = '<p class="description">' . wp_kses_post( $description ) . '</p>'; |
| 277 | 273 | } |