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 +5 -9 4.1.7 → 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 );
121 - }
122 -
123 119 if ( empty( $data ) ) {
124 120 return false;
125 121 }
126 122
@@ -148,9 +144,9 @@
148 144 case 'yes-no':
149 145 $value = '1' === $raw_value || 'yes' === $raw_value ? 'yes' : 'no';
150 146 break;
151 147 case 'textarea':
152 - $value = LP_Helper::sanitize_params_submitted( trim( $raw_value ), 'html' );
148 + $value = trim( $raw_value );
153 149 break;
154 150 case 'multiselect':
155 151 case 'multi_select_countries':
156 152 $value = array_filter( array_map( 'learnpress_clean', (array) $raw_value ) );
@@ -192,9 +188,9 @@
192 188 $value[ $cfsort ] = $feilds;
193 189 }
194 190 }
195 191
196 - $value = LP_Helper::sanitize_params_submitted( $value );
192 + //$value = LP_Helper::sanitize_params_submitted( $value );
197 193 break;
198 194
199 195 case 'image_advanced':
200 196 $value = ! empty( $raw_value ) ? array_filter( explode( ',', learnpress_clean( $raw_value ) ) ) : array();
@@ -203,15 +199,15 @@
203 199 $value = ! empty( $raw_value ) ? absint( learnpress_clean( $raw_value ) ) : '';
204 200 break;
205 201 case 'email-content':
206 202 $value = ! empty( $raw_value ) ? $raw_value : array();
207 - $value = LP_Helper::sanitize_params_submitted( $value, 'html' );
203 + //$value = LP_Helper::sanitize_params_submitted( $value, 'html' );
208 204 break;
209 205 case 'url':
210 206 $value = ! empty( $raw_value ) ? esc_url_raw( $raw_value ) : '';
211 207 break;
212 208 default:
213 - $value = LP_Helper::sanitize_params_submitted( $raw_value );
209 + $value = $raw_value;
214 210 break;
215 211 }
216 212
217 213 /**
@@ -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 }