Make WordPress Core

Changeset 45090


Ignore:
Timestamp:
04/01/2019 04:48:32 PM (7 years ago)
Author:
SergeyBiryukov
Message:

PHPCS: Fix WPCS violation in [45088].

See #38168.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/getBodyClass.php

    r45088 r45090  
    211211                set_theme_mod( 'background_color', '#000000' );
    212212
    213                 $class = get_body_class();
    214                 $current_theme_supports_custom_background = current_theme_supports( 'custom-background' );
     213                $class                     = get_body_class();
     214                $theme_supports_background = current_theme_supports( 'custom-background' );
    215215
    216216                remove_theme_mod( 'background_color' );
    217217                remove_theme_support( 'custom-background' );
    218218
    219                 $this->assertTrue( $current_theme_supports_custom_background );
     219                $this->assertTrue( $theme_supports_background );
    220220                $this->assertContains( 'custom-background', $class );
    221221        }
     
    227227                set_theme_mod( 'background_color', '#000000' );
    228228
    229                 $class = get_body_class();
    230                 $current_theme_supports_custom_background = current_theme_supports( 'custom-background' );
     229                $class                     = get_body_class();
     230                $theme_supports_background = current_theme_supports( 'custom-background' );
    231231
    232232                remove_theme_mod( 'background_color' );
    233233
    234                 $this->assertFalse( $current_theme_supports_custom_background );
     234                $this->assertFalse( $theme_supports_background );
    235235                $this->assertNotContains( 'custom-background', $class );
    236236        }
Note: See TracChangeset for help on using the changeset viewer.