Make WordPress Core


Ignore:
Timestamp:
06/12/2015 05:18:38 PM (11 years ago)
Author:
wonderboymusic
Message:

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

See #32444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/export.php

    r32655 r32730  
    134134     */
    135135    function wxr_cdata( $str ) {
    136         if ( seems_utf8( $str ) == false )
     136        if ( ! seems_utf8( $str ) ) {
    137137            $str = utf8_encode( $str );
    138 
     138        }
    139139        // $str = ent2ncr(esc_html($str));
    140140        $str = '<![CDATA[' . str_replace( ']]>', ']]]]><![CDATA[>', $str ) . ']]>';
Note: See TracChangeset for help on using the changeset viewer.