wp/wp-includes/class-wp-simplepie-sanitize-kses.php
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 18 be944660c56a
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
    44 		if ( $type & SIMPLEPIE_CONSTRUCT_BASE64 ) {
    44 		if ( $type & SIMPLEPIE_CONSTRUCT_BASE64 ) {
    45 			$data = base64_decode( $data );
    45 			$data = base64_decode( $data );
    46 		}
    46 		}
    47 		if ( $type & ( SIMPLEPIE_CONSTRUCT_HTML | SIMPLEPIE_CONSTRUCT_XHTML ) ) {
    47 		if ( $type & ( SIMPLEPIE_CONSTRUCT_HTML | SIMPLEPIE_CONSTRUCT_XHTML ) ) {
    48 			$data = wp_kses_post( $data );
    48 			$data = wp_kses_post( $data );
    49 			if ( $this->output_encoding !== 'UTF-8' ) {
    49 			if ( 'UTF-8' !== $this->output_encoding ) {
    50 				$data = $this->registry->call( 'Misc', 'change_encoding', array( $data, 'UTF-8', $this->output_encoding ) );
    50 				$data = $this->registry->call( 'Misc', 'change_encoding', array( $data, 'UTF-8', $this->output_encoding ) );
    51 			}
    51 			}
    52 			return $data;
    52 			return $data;
    53 		} else {
    53 		} else {
    54 			return parent::sanitize( $data, $type, $base );
    54 			return parent::sanitize( $data, $type, $base );