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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user