Coding Standards: Fix WPCS issues in wp-admin/includes/class-wp-debug-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
This commit is contained in:
parent
174ead229d
commit
4d6ac487e7
@ -1006,7 +1006,7 @@ class WP_Debug_Data {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
if ( $auto_updates_enabled ) {
|
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' );
|
$theme_auto_update_string = __( 'Enabled' );
|
||||||
} else {
|
} else {
|
||||||
$theme_auto_update_string = __( 'Disabled' );
|
$theme_auto_update_string = __( 'Disabled' );
|
||||||
@ -1064,7 +1064,7 @@ class WP_Debug_Data {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
if ( $auto_updates_enabled ) {
|
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' );
|
$parent_theme_auto_update_string = __( 'Enabled' );
|
||||||
} else {
|
} else {
|
||||||
$parent_theme_auto_update_string = __( 'Disabled' );
|
$parent_theme_auto_update_string = __( 'Disabled' );
|
||||||
@ -1126,7 +1126,7 @@ class WP_Debug_Data {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( $auto_updates_enabled ) {
|
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 .= ' | ' . $auto_updates_enabled_str;
|
||||||
$theme_version_string_debug .= ',' . $auto_updates_enabled_str;
|
$theme_version_string_debug .= ',' . $auto_updates_enabled_str;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user