Make WordPress Core


Ignore:
Timestamp:
02/09/2020 04:52:28 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use Yoda conditions where appropriate.

See #49222.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-simplepie-sanitize-kses.php

    r42343 r47219  
    4747                if ( $type & ( SIMPLEPIE_CONSTRUCT_HTML | SIMPLEPIE_CONSTRUCT_XHTML ) ) {
    4848                        $data = wp_kses_post( $data );
    49                         if ( $this->output_encoding !== 'UTF-8' ) {
     49                        if ( 'UTF-8' !== $this->output_encoding ) {
    5050                                $data = $this->registry->call( 'Misc', 'change_encoding', array( $data, 'UTF-8', $this->output_encoding ) );
    5151                        }
Note: See TracChangeset for help on using the changeset viewer.