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-admin/includes/class-wp-screen.php

    r47122 r47219  
    374374                if ( isset( self::$_registry[ $id ] ) ) {
    375375                        $screen = self::$_registry[ $id ];
    376                         if ( $screen === get_current_screen() ) {
     376                        if ( get_current_screen() === $screen ) {
    377377                                return $screen;
    378378                        }
     
    455455         */
    456456        public function is_block_editor( $set = null ) {
    457                 if ( $set !== null ) {
     457                if ( null !== $set ) {
    458458                        $this->is_block_editor = (bool) $set;
    459459                }
Note: See TracChangeset for help on using the changeset viewer.