PluginProbe
Tutor LMS – eLearning and online course solution / 3.4.2
Tutor LMS – eLearning and online course solution v3.4.2
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 4.0.0 3.9.15 3.9.14 3.9.13 3.9.12 3.9.11 trunk 1.0.0 1.0.0-alpha 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 All 191 releases
← All changes | classes/Input.php +0 -41 3.4.13.4.2 View file →
@@ -150,49 +150,8 @@
150 150
151 151 }
152 152
153 153 /**
154 - * Sanitize tutor text editor text
155 - *
156 - * @since 3.4.1
157 - *
158 - * @param string $field_name input value.
159 - *
160 - * @return string
161 - */
162 - public static function sanitize_tutor_editor_content( $field_name ) {
163 - $supported_tags = array(
164 - 'p' => array(),
165 - 'br' => array(),
166 - 'span' => array(
167 - 'style' => true,
168 - ),
169 - 'strong' => array(),
170 - 'b' => array(),
171 - 'em' => array(),
172 - 'i' => array(),
173 - 'u' => array(),
174 - 'blockquote' => array(),
175 - 'ul' => array(),
176 - 'ol' => array(),
177 - 'li' => array(),
178 - 'del' => array(),
179 - 'ins' => array(),
180 - 'sub' => array(),
181 - 'sup' => array(),
182 - 'a' => array(
183 - 'href' => true,
184 - 'title' => true,
185 - 'target' => true,
186 - 'rel' => true,
187 - ),
188 - );
189 -
190 - $content = wp_unslash( $_POST[ $field_name ] ?? '' ); //phpcs:ignore
191 - return wp_kses( $content, $supported_tags );
192 - }
193 -
194 - /**
195 154 * Dynamically get value
196 155 *
197 156 * @since 2.2.0
198 157 *