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

Follow-up to [47819].

Props sorenbronsted.
See #49542.
Built from https://develop.svn.wordpress.org/trunk@47821


git-svn-id: http://core.svn.wordpress.org/trunk@47597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-05-19 08:41:12 +00:00
parent bc0e05d6c8
commit 434bee9fc9
2 changed files with 4 additions and 4 deletions

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'];

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.5-alpha-47820'; $wp_version = '5.5-alpha-47821';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.