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
This commit is contained in:
Sergey Biryukov 2020-05-19 08:39:28 +00:00
parent 930633096e
commit 78a308ea84

View File

@ -889,7 +889,7 @@ final class WP_Customize_Manager {
* @return bool * @return bool
*/ */
public function is_theme_active() { 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->id = $theme->slug;
$theme->screenshot = array( $theme->screenshot_url ); $theme->screenshot = array( $theme->screenshot_url );
$theme->authorAndUri = wp_kses( $theme->author['display_name'], $themes_allowedtags ); $theme->authorAndUri = wp_kses( $theme->author['display_name'], $themes_allowedtags );
$theme->compatibleWP = is_wp_version_compatible( $theme->requires ); $theme->compatibleWP = is_wp_version_compatible( $theme->requires ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName
$theme->compatiblePHP = is_php_version_compatible( $theme->requires_php ); $theme->compatiblePHP = is_php_version_compatible( $theme->requires_php ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName
if ( isset( $theme->parent ) ) { if ( isset( $theme->parent ) ) {
$theme->parent = $theme->parent['slug']; $theme->parent = $theme->parent['slug'];