PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.10
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.10
4.4.10 4.4.9.1 4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 All 142 releases
← All changes | inc/admin/meta-box/class-lp-meta-box-helper.php +1 -5 4.1.7.2 → 4.4.10 View file →
@@ -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 }