Skip to content

Commit

Permalink
Coding Standards: Fix WPCS issues in `wp-admin/includes/class-wp-debu…
Browse files Browse the repository at this point in the history
…g-data.php`.

Follow-up to [47550], [47557], [47835].

See #50052.

git-svn-id: https://develop.svn.wordpress.org/trunk@47840 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed May 22, 2020
1 parent 174ead2 commit 4d6ac48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wp-admin/includes/class-wp-debug-data.php
Expand Up @@ -1006,7 +1006,7 @@ static function debug_data() {
),
);
if ( $auto_updates_enabled ) {
if ( in_array( $active_theme->stylesheet, $auto_updates ) ) {
if ( in_array( $active_theme->stylesheet, $auto_updates, true ) ) {
$theme_auto_update_string = __( 'Enabled' );
} else {
$theme_auto_update_string = __( 'Disabled' );
Expand Down Expand Up @@ -1064,7 +1064,7 @@ static function debug_data() {
),
);
if ( $auto_updates_enabled ) {
if ( in_array( $parent_theme->stylesheet, $auto_updates ) ) {
if ( in_array( $parent_theme->stylesheet, $auto_updates, true ) ) {
$parent_theme_auto_update_string = __( 'Enabled' );
} else {
$parent_theme_auto_update_string = __( 'Disabled' );
Expand Down Expand Up @@ -1126,7 +1126,7 @@ static function debug_data() {
}

if ( $auto_updates_enabled ) {
if ( in_array( $theme_slug, $auto_updates ) ) {
if ( in_array( $theme_slug, $auto_updates, true ) ) {
$theme_version_string .= ' | ' . $auto_updates_enabled_str;
$theme_version_string_debug .= ',' . $auto_updates_enabled_str;
} else {
Expand Down

0 comments on commit 4d6ac48

Please sign in to comment.