Coding Standards: Fix WPCS issues in plugin and theme upgrader classes.

See #49542.
Built from https://develop.svn.wordpress.org/trunk@47814


git-svn-id: http://core.svn.wordpress.org/trunk@47590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2020-05-17 09:39:11 +00:00
parent f9b60d3334
commit 91936df3d1
4 changed files with 4 additions and 4 deletions

View File

@@ -577,7 +577,7 @@ class Theme_Upgrader extends WP_Upgrader {
}
// Ensure stylesheet name hasn't changed after the upgrade:
if ( get_stylesheet() === $theme && $theme != $this->result['destination_name'] ) {
if ( get_stylesheet() === $theme && $theme !== $this->result['destination_name'] ) {
wp_clean_themes_cache();
$stylesheet = $this->result['destination_name'];
switch_theme( $stylesheet );