WordPress.org

Make WordPress Core

Changeset 47821


Ignore:
Timestamp:
05/19/2020 08:39:28 AM (16 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Fix WPCS issues in wp-includes/class-wp-customize-manager.php.

Follow-up to [47819].

Props sorenbronsted.
See #49542.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r47819 r47821  
    890890     */
    891891    public function is_theme_active() {
    892         return $this->get_stylesheet() == $this->original_stylesheet;
     892        return $this->get_stylesheet() === $this->original_stylesheet;
    893893    }
    894894
     
    58575857                $theme->screenshot    = array( $theme->screenshot_url );
    58585858                $theme->authorAndUri  = wp_kses( $theme->author['display_name'], $themes_allowedtags );
    5859                 $theme->compatibleWP  = is_wp_version_compatible( $theme->requires );
    5860                 $theme->compatiblePHP = is_php_version_compatible( $theme->requires_php );
     5859                $theme->compatibleWP  = is_wp_version_compatible( $theme->requires ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName
     5860                $theme->compatiblePHP = is_php_version_compatible( $theme->requires_php ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName
    58615861
    58625862                if ( isset( $theme->parent ) ) {
Note: See TracChangeset for help on using the changeset viewer.