Skip to content

Commit b0682e7

Browse files
authored
Check array properly
Note to self: Do not attempt this at 3AM.
1 parent f225767 commit b0682e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/admin-bar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ function wp_admin_bar_add_color_scheme_to_front_end() {
14501450

14511451
$color_scheme = get_user_option( 'admin_color' );
14521452

1453-
if ( empty( $color_scheme ) || ! in_array( 'modern', 'light', 'blue', 'coffee', 'ectoplasm', 'midnight', 'ocean', 'sunrise' ) ) {
1453+
if ( empty( $color_scheme ) || ! in_array( $color_scheme, array( 'modern', 'light', 'blue', 'coffee', 'ectoplasm', 'midnight', 'ocean', 'sunrise' ), true ) ) {
14541454
return;
14551455
}
14561456

0 commit comments

Comments
 (0)