From 78a308ea8453310547acbfae3eb42b0dddd9553f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 19 May 2020 08:39:28 +0000 Subject: [PATCH] Coding Standards: Fix WPCS issues in `wp-includes/class-wp-customize-manager.php`. Follow-up to [47819]. Props sorenbronsted. See #49542. git-svn-id: https://develop.svn.wordpress.org/trunk@47821 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-manager.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php index ce325118f5..9d55fb23ac 100644 --- a/src/wp-includes/class-wp-customize-manager.php +++ b/src/wp-includes/class-wp-customize-manager.php @@ -889,7 +889,7 @@ final class WP_Customize_Manager { * @return bool */ public function is_theme_active() { - return $this->get_stylesheet() == $this->original_stylesheet; + return $this->get_stylesheet() === $this->original_stylesheet; } /** @@ -5856,8 +5856,8 @@ final class WP_Customize_Manager { $theme->id = $theme->slug; $theme->screenshot = array( $theme->screenshot_url ); $theme->authorAndUri = wp_kses( $theme->author['display_name'], $themes_allowedtags ); - $theme->compatibleWP = is_wp_version_compatible( $theme->requires ); - $theme->compatiblePHP = is_php_version_compatible( $theme->requires_php ); + $theme->compatibleWP = is_wp_version_compatible( $theme->requires ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName + $theme->compatiblePHP = is_php_version_compatible( $theme->requires_php ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName if ( isset( $theme->parent ) ) { $theme->parent = $theme->parent['slug'];