Coding Standards: Use Yoda conditions where appropriate.
See #49222. Built from https://develop.svn.wordpress.org/trunk@47219 git-svn-id: http://core.svn.wordpress.org/trunk@47019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -46,7 +46,7 @@ class WP_SimplePie_Sanitize_KSES extends SimplePie_Sanitize {
|
||||
}
|
||||
if ( $type & ( SIMPLEPIE_CONSTRUCT_HTML | SIMPLEPIE_CONSTRUCT_XHTML ) ) {
|
||||
$data = wp_kses_post( $data );
|
||||
if ( $this->output_encoding !== 'UTF-8' ) {
|
||||
if ( 'UTF-8' !== $this->output_encoding ) {
|
||||
$data = $this->registry->call( 'Misc', 'change_encoding', array( $data, 'UTF-8', $this->output_encoding ) );
|
||||
}
|
||||
return $data;
|
||||
|
||||
Reference in New Issue
Block a user