equal
deleted
inserted
replaced
25 * Sanitizes the incoming data, to ensure that it matches the type of data expected, using KSES. |
25 * Sanitizes the incoming data, to ensure that it matches the type of data expected, using KSES. |
26 * |
26 * |
27 * @since 3.5.0 |
27 * @since 3.5.0 |
28 * |
28 * |
29 * @param mixed $data The data that needs to be sanitized. |
29 * @param mixed $data The data that needs to be sanitized. |
30 * @param integer $type The type of data that it's supposed to be. |
30 * @param int $type The type of data that it's supposed to be. |
31 * @param string $base Optional. The `xml:base` value to use when converting relative |
31 * @param string $base Optional. The `xml:base` value to use when converting relative |
32 * URLs to absolute ones. Default empty. |
32 * URLs to absolute ones. Default empty. |
33 * @return mixed Sanitized data. |
33 * @return mixed Sanitized data. |
34 */ |
34 */ |
35 public function sanitize( $data, $type, $base = '' ) { |
35 public function sanitize( $data, $type, $base = '' ) { |