mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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 ) . ']]>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user