Don't loosely compare functions that return bool against a literal bool.

See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32730 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-06-12 17:18:38 +00:00
parent 40c54bc238
commit 3f29a2101d
5 changed files with 7 additions and 7 deletions

View File

@@ -133,9 +133,9 @@ function export_wp( $args = array() ) {
* @return string
*/
function wxr_cdata( $str ) {
if ( seems_utf8( $str ) == false )
if ( ! seems_utf8( $str ) ) {
$str = utf8_encode( $str );
}
// $str = ent2ncr(esc_html($str));
$str = '<![CDATA[' . str_replace( ']]>', ']]]]><![CDATA[>', $str ) . ']]>';